Managing the Standalone Daemon

If you are using a ServerType of inetd, you do not need to read these instructions.


If you make any changes to HTTPd's configuration files, you must restart the server. To do so, you will need to know where the server has logged its process id, given by the server configuration directive PidFile.

If pidfile is the setting of PidFile for your server, to restart the daemon execute the following on the command line:

kill -1 `cat pidfile`

or

kill -HUP `cat pidfile`

This will restart the daemon.

You should now check to see if the daemon restarted successfully. Check the last line of the server's error log, given by the server configuration directive ErrorLogFile, and make sure it says HTTPd: successful restart.

Alternatively, you may use the ps command to grep for the process id of the daemon.


If you ever need to terminate the server, use the following command:

kill `cat pidfile`

Node: Don't use kill -9 `cat pidfile` to kill the server because kill -9 will kill the parents but will not kill all the children on some systems.


[Back] Return to the Tutorial Index
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / 04-08-96