]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.logrotate
SSLUseStapling should not be enabled if using self-generated certs
[packages/apache.git] / apache.logrotate
index 546df72331805f0450cc1d6afc51e738e07f95fb..2d05b37679755e5e30d1bc5a1c426b2a75324613 100644 (file)
@@ -1,27 +1,18 @@
-/var/log/httpd/access_log {
+/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/archive/httpd
-    postrotate
-       /usr/bin/killall -HUP httpd
-    endscript
-}
-
-/var/log/httpd/error_log {
-    olddir /var/log/archive/httpd
-    postrotate
-       /usr/bin/killall -HUP httpd
-    endscript
-}
-
-/var/log/httpd/referer_log {
-    olddir /var/log/archive/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.87507 seconds and 4 git commands to generate.