Closed Bug 1265519 Opened 8 years ago Closed 8 years ago

httpd logs on hgweb[11-14] aren't using access_log, rotating logs

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Unassigned)

References

Details

Something is broken with the log rotation of httpd logs on the CentOS 7 hgweb[11-14] machines. The access_log and error_log files aren't getting written to. And our daily log rotation doesn't appear to be working.

I suspect this has to do with the upgrade to httpd 2.4 as part of the CentOS 7 switch.
/etc/logrotate.d/hg-httpd-logrotate needs systemd love:

    postrotate
        /etc/init.d/httpd reload > /dev/null
    endscript

hgweb11.dmz.scl3# ll /etc/init.d/httpd
ls: cannot access /etc/init.d/httpd: No such file or directory

replace w/ systemctl reload httpd.service and should be good to go
https://hg.mozilla.org/hgcustom/version-control-tools/rev/7e09b24894579fb058a3fcded7f2087ee85c3ba9
ansible/hg-web: replace httpd log rotate config with systemctl (bug 1265519)
Deployed switch to use systemctl.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.