]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- sharedscripts
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 16 Mar 2006 14:26:06 +0000 (14:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use flush-logs to rotate apache logs

Changed files:
    apache1.logrotate -> 1.6

apache1.logrotate

index 05c82300dd53354f81a968d92ded5cd1c2de4d73..0c78c0d9a9ecdf521dbee6a66398c0476d483525 100644 (file)
@@ -1,27 +1,11 @@
-/var/log/apache/*access_log {
+/var/log/apache/*access_log
+/var/log/apache/*agent_log
+/var/log/apache/*error_log
+/var/log/apache/*referer_log
+{
+       sharedscripts
     olddir /var/log/archiv/apache
     postrotate
-       /etc/rc.d/init.d/apache graceful > /dev/null 2>&1 || /bin/true
-    endscript
-}
-
-/var/log/apache/*agent_log {
-    olddir /var/log/archiv/apache
-    postrotate
-       /etc/rc.d/init.d/apache graceful > /dev/null 2>&1 || /bin/true
-    endscript
-}
-
-/var/log/apache/*error_log {
-    olddir /var/log/archiv/apache
-    postrotate
-       /etc/rc.d/init.d/apache graceful > /dev/null 2>&1 || /bin/true
-    endscript
-}
-
-/var/log/apache/*referer_log {
-    olddir /var/log/archiv/apache
-    postrotate
-       /etc/rc.d/init.d/apache graceful > /dev/null 2>&1 || /bin/true
+               /etc/rc.d/init.d/apache flush-logs > /dev/null
     endscript
 }
This page took 0.0618649999999999 seconds and 4 git commands to generate.