X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache.logrotate;h=060a1b8d3f18653b2e87d805179a87d77f0cf044;hb=b88e6a8cd68f2f0ddcad03263cd8db46bf589911;hp=f7755bcc0997c0f054576683bfddee76dbbc3519;hpb=30087b663175d635cce2937d6aeee167fe4b4051;p=packages%2Fapache.git diff --git a/apache.logrotate b/apache.logrotate index f7755bc..060a1b8 100644 --- a/apache.logrotate +++ b/apache.logrotate @@ -1,31 +1,14 @@ -/var/log/httpd/*access_log { - olddir /var/log/archiv/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 - sharedscripts - 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 - sharedscripts - 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 - sharedscripts - postrotate - /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true +/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 + /sbin/service httpd flush-logs > /dev/null endscript }