Project

General

Profile

Bug #2813

apache logrotate file assumes systemd

Drag0nFly - over 3 years ago - . Updated about 3 years 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 over 3 years ago

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

#2

Updated by Drag0nFly about 3 years ago

Bumping as this ticket is now six months old.

Also available in: Atom PDF