]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache.logrotate
- BR: bash (-configure_hashbang.patch)
[packages/apache1.git] / apache.logrotate
index b18073106b1406cedf282b2fc78bcbe962fd68c3..2e0f0c2e1d1ca419438dd9692448e9ca909b40c9 100644 (file)
@@ -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/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/archiv/httpd
+    sharedscripts
+    postrotate
+               /sbin/service httpd flush-logs > /dev/null
     endscript
 }
This page took 0.047543 seconds and 4 git commands to generate.