-/var/log/httpd/access_log {
- olddir /var/log/archiv/httpd
- postrotate
- /bin/killall -USR1 httpd
- endscript
-}
-
-/var/log/httpd/agent_log {
- olddir /var/log/archiv/httpd
- postrotate
- /bin/killall -USR1 httpd
- endscript
-}
-
-/var/log/httpd/error_log {
- olddir /var/log/archiv/httpd
- postrotate
- /bin/killall -USR1 httpd
- endscript
-}
-
-/var/log/httpd/referer_log {
- olddir /var/log/archiv/httpd
- postrotate
- /bin/killall -USR1 httpd
+/var/log/apache/*access_log
+/var/log/apache/*agent_log
+/var/log/apache/*error_log
+/var/log/apache/*referer_log
+{
+ sharedscripts
+ olddir /var/log/archiv/apache
+ postrotate
+ /etc/rc.d/init.d/apache flush-logs > /dev/null
endscript
}