Apache's init script needs a small addition to allow it to perform graceful restarts--graceful restarts do zero-downtime updates of loaded modules and configuration file alterations. This is very handy for people using Apache on mission-critical servers. The URL I listed explains exactly what how graceful restarts work. Here's what I added to the /etc/rc.d/init.d/httpd init script: hotstart) echo -n "Hot starting httpd: " killproc httpd -USR1 echo ;; "graceful" might be a better name for the target than "hotstart". Also, it would make a lot of sense to store the killproc return value and exit from the init script with that return value. That would turn the above into: graceful) echo -n "Gracefully restarting httpd: " killproc httpd -USR1 RV=$? echo exit $RV ;; And the default line ("Usage: $0 {.....}") should probably mention the graceful/hotstart option. E-mail me if you have any questions: SumnerH at fool.com
This should be incorporated into apache-1.3.12-10, which will hit Raw Hide soon.
actually, this isn't in the very latest rawhide (apache-1.3.20-15). Looks from the comments like it was added at one point, but now it's gone again.
*** Bug 49235 has been marked as a duplicate of this bug. ***
The apachectl script that comes with apache also has a "configtest" option, which would be nice.
The apache packages do now support "service httpd configtest".