Bug 8110
Summary: | fix for bug 7074 not quite correct: postrotate still errors | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | cobbe |
Component: | apache | Assignee: | Preston Brown <pbrown> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | ralston |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-01-13 02:36:15 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: |
Description
cobbe
2000-01-02 16:08:01 UTC
(Me again, just from a different email address.) Well, actually, my quick fix above will work, but I actually meant /usr/bin/killall -HUP httpd 2> /dev/null || true (logical OR, not pipe....<sigh>) changed for 6.2 I'm not sure how this issue was specifically resolved, but IMHO, probably the cleanest way to invoke the killall in /etc/logrotate.d/apache is to do this: if /sbin/chkconfig httpd; then /usr/bin/killall -HUP httpd else true fi This way, if apache isn't supposed to be running in the current runlevel (according to chkconfig), nothing will occur, but the return value of the check will still be 0 (true), so logrotate won't see anything amiss. But if apache is supposed to be running, and killall fails (because apache wasn't running, perhaps), then the return value will be 1 (false), so an error will be reported (emailed). |