X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache1.logrotate;h=eb511b58070cd3cfa2b29e915ba6853c5fde3716;hb=5852d2ce814a762da7d3f068c9094bdc6c1f36eb;hp=b18073106b1406cedf282b2fc78bcbe962fd68c3;hpb=84526a0819054b599d6bc26210471c04571540ce;p=packages%2Fapache1.git diff --git a/apache1.logrotate b/apache1.logrotate index b180731..eb511b5 100644 --- a/apache1.logrotate +++ b/apache1.logrotate @@ -1,27 +1,14 @@ -/var/log/httpd/access_log { - olddir /var/log/archiv/httpd - 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 +/var/log/apache/*access_log +/var/log/apache/*combined_log +/var/log/apache/*agent_log +/var/log/apache/*error_log +/var/log/apache/*referer_log +/var/log/apache/ssl_engine_log +/var/log/apache/ssl_request_log +{ + sharedscripts + olddir /var/log/archive/apache + postrotate + /sbin/service apache flush-logs > /dev/null endscript }