Also note that when running with -X, the control
messages that the parent server normally writes to
error_log (e.g., "server
started", "server
stopped", etc.) will not be written anywhere.
httpd -X causes the server to handle all
requests itself without forking any children, so there is no
controlling parent to write the status messages.
Usually Ctrl-C is used to kill a server running in single process
mode, but Ctrl-C doesn't constitute a clean
shutdown. httpd.pid doesn't get
removed, so the next time the server is started, the message:
[warn] pid file /home/httpd/httpd_perl/logs/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?
will appear in error_log. You can ignore this
warning; there's nothing to worry about.
| | |
5. Web Server Control, Monitoring, Upgrade, and Maintenance | | 5.3. Using kill to Control Processes |