ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Apache Web-Serving with Mac OS X: Part 2
Subject:   Re-Reading httpd.conf without restarting apache
Date:   2003-07-01 05:58:19
From:   anonymous2
It is possible to make Apache re read the configuration file without stopping and restarting it - useful if you are not sitting in front of the machine.

Find out the process id of apache
cat /var/run/httpd.pid

then send a Hangup Signal to that process id
kill -HUP <id>

[MyMAC:~] root# cat /var/run/httpd.pid
[MyMAC:~] root# kill -HUP 457

I believe that if there is an error in the file Apache will just keep running the old file, but don't quote me on that.