Next: , Up: Usage


8.1 The init.d script

The included init.d script uses start-stop-daemon to do most of its work.

The init.d script accepts the following commands:

start
Start the daemon if it is not already running.
stop
Stop the daemon if it is not already stopped.
restart
Stop and start the daemon.
reload
force-reload
Tell the daemon to reload its configuration. This is done by sending the hang-up (HUP) signal to the daemon.
status
monitor
These commands check if the daemon is running and responding. A negative answer is indicated by a non-zero exit status (at the moment only 7 to indicate that the daemon may be running but is not responding).

See the ping command in See dgrey commands.