-/var/log/httpd/*access_log {
- olddir /var/log/archiv/httpd
+/var/log/httpd/*access_log
+/var/log/httpd/*combined_log
+/var/log/httpd/*agent_log
+/var/log/httpd/*error_log
+/var/log/httpd/*referer_log
+/var/log/httpd/*request_log
+/var/log/httpd/*rewrite_log
+{
+ olddir /var/log/archive/httpd
+ sharedscripts
postrotate
- /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true
- endscript
-}
-
-/var/log/httpd/*agent_log {
- olddir /var/log/archiv/httpd
- postrotate
- /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true
- endscript
-}
-
-/var/log/httpd/*error_log {
- olddir /var/log/archiv/httpd
- postrotate
- /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true
- endscript
-}
-
-/var/log/httpd/*referer_log {
- olddir /var/log/archiv/httpd
- postrotate
- /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true
+ if /bin/systemd_booted; then
+ /bin/systemctl reload httpd.service
+ else
+ /sbin/service httpd flush-logs > /dev/null
+ fi
endscript
}