X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=apache.logrotate;h=060a1b8d3f18653b2e87d805179a87d77f0cf044;hb=3a38153a6db86f2411889b48ac84b60adb58f2bf;hp=ae9fa010a9f9c81429a634143db8e90a99fbbb93;hpb=115845bd71e3d0df831d32600f6e33900c358205;p=packages%2Fapache.git diff --git a/apache.logrotate b/apache.logrotate index ae9fa01..060a1b8 100644 --- a/apache.logrotate +++ b/apache.logrotate @@ -1,27 +1,14 @@ -/var/log/httpd/access_log { - olddir /var/log/archiv/httpd - postrotate - /bin/killall -HUP httpd - endscript -} - -/var/log/httpd/agent_log { - olddir /var/log/archiv/httpd - postrotate - /bin/killall -HUP httpd - endscript -} - -/var/log/httpd/error_log { - olddir /var/log/archiv/httpd - postrotate - /bin/killall -HUP httpd - endscript -} - -/var/log/httpd/referer_log { - olddir /var/log/archiv/httpd - postrotate - /bin/killall -HUP 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 + /sbin/service httpd flush-logs > /dev/null endscript }