]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.logrotate
- don't process commented out entries
[packages/apache.git] / apache.logrotate
index 46bde77378d9b3196350b44a36ad9a210f6b3623..2d05b37679755e5e30d1bc5a1c426b2a75324613 100644 (file)
@@ -1,27 +1,18 @@
-/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
-       /usr/bin/killall -HUP httpd
-    endscript
-}
-
-/var/log/httpd/agent_log {
-    olddir /var/log/archiv/httpd
-    postrotate
-       /usr/bin/killall -HUP httpd
-    endscript
-}
-
-/var/log/httpd/error_log {
-    olddir /var/log/archiv/httpd
-    postrotate
-       /usr/bin/killall -HUP httpd
-    endscript
-}
-
-/var/log/httpd/referer_log {
-    olddir /var/log/archiv/httpd
-    postrotate
-       /usr/bin/killall -HUP httpd
+       if /bin/systemd_booted; then
+               /bin/systemctl reload httpd.service
+       else
+               /sbin/service httpd flush-logs > /dev/null
+       fi
     endscript
 }
This page took 0.048881 seconds and 4 git commands to generate.