Bug #2813
apache logrotate file assumes systemd
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
Updated by Drag0nFly almost 3 years ago
Should have written "which for instance looks like the following for OpenRC"