Bug 13278
| Summary: | Apache init script graceful restarts, proper exit values | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | sumnerh |
| Component: | apache | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2 | Keywords: | FutureFeature |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://www.apache.org/docs/stopping.html | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-09-04 23:16:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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". |
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