- /usr/bin/killall -HUP httpd
- endscript
-}
-
-/var/log/httpd/agent_log {
- olddir /var/log/archiv/httpd
- postrotate
- /usr/bin/killall -HUP httpd
- endscript
-}
-
-/var/log/httpd/error_log {
- olddir /var/log/archiv/httpd
- postrotate
- /usr/bin/killall -HUP httpd
- endscript
-}
-
-/var/log/httpd/referer_log {
- olddir /var/log/archiv/httpd
- postrotate
- /usr/bin/killall -HUP httpd
+ if /bin/systemd_booted; then
+ /bin/systemctl reload httpd.service
+ else
+ /sbin/service httpd flush-logs > /dev/null
+ fi