Hi,
I have a request for change for the init configuration for the NAV Debian package.
Problem: When the nav server starts some nav modules fail to start up because the nav init script makes nav start before the postgresql database has started.
Under /etc/rc2.d/ (2 is default run level on my machine) the nav script is named S03nav and the postgresql script is named S03postgresql. Since init starts the scripts first numerically (same numbers can be started concurrently I think), then alphabetically it means nav will start a little before postgresql making some nav modules fail to start because they can not contact the database.
Editing the script /etc/init.d/nav and adding postgresql to the end of the Required-Start and Required-Stop lines, then running the command "update-rc.d nav defaults" fixes this.
The lines will look then like this:
# Required-Start: $local_fs $named $network $remote_fs $syslog $time postgresql # Required-Stop: $local_fs $named $network $remote_fs $syslog $time postgresql
Best regards, Roger Aas Atea AS