SOURCES: apache1.logrotate - sharedscripts - use flush-logs to rot...

glen glen at pld-linux.org
Thu Mar 16 15:26:11 CET 2006


Author: glen                         Date: Thu Mar 16 14:26:11 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- sharedscripts
- use flush-logs to rotate apache logs

---- Files affected:
SOURCES:
   apache1.logrotate (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/apache1.logrotate
diff -u SOURCES/apache1.logrotate:1.5 SOURCES/apache1.logrotate:1.6
--- SOURCES/apache1.logrotate:1.5	Tue Apr 13 21:37:18 2004
+++ SOURCES/apache1.logrotate	Thu Mar 16 15:26:06 2006
@@ -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
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/apache1.logrotate?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list