Project

General

Profile

Bug #2813

apache logrotate file assumes systemd

Drag0nFly - 3 months ago - . Updated 3 months ago.

Status:
unconfirmed
Priority:
bug
Assignee:
-
% Done:

0%


Description

The included /etc/logrotate.d/httpd file for apache (2.4.43-1.0) assumes that the system is running systemd. Any graceful restarts after subsequent logrotation will
therefore fail, and logging for the service will cease.

This would probably be better handled with a post-install hook if a separate .nonsystemd package is not create which for instance would look like the following:

/var/log/httpd/*log {
missingok
sharedscripts
postrotate
rc-service httpd graceful 2>/dev/null || true
endscript
}

History

#1

Updated by Drag0nFly 3 months ago

Should have written "which for instance looks like the following for OpenRC"

Also available in: Atom PDF