SOURCES: syslog.logrotate - freshclam.log added.

Jarosław Kamper jack w jack.eu.org
Wto, 20 Kwi 2004, 11:13:50 CEST


----- Original Message ----- 
From: "Paweł Gołaszewski" <blues w ds.pg.gda.pl>
To: "To my robimy PLD" <pld-devel-pl w pld-linux.org>
Sent: Tuesday, April 20, 2004 11:00 AM
Subject: Re: SOURCES: syslog.logrotate - freshclam.log added.


> On Tue, 20 Apr 2004, [iso-8859-2] Jarosław Kamper wrote:
> > [root w pldmachine logs]$ cat /etc/logrotate.d/apache
> > /var/log/httpd/*_log {
> >     olddir /var/log/archiv/httpd
> >     sharedscripts
> >     postrotate
> >         /bin/killall -HUP httpd
> >     endscript
> > }
> > 
> > Zaletą tego, jest przede wszystkim mniejsza ilość zabójstw ;)
> 
> Może być. Poza tym - w cvs-ie jest już zmieniony skrypt apache, trochę na 
> tą modłę.

Chyba nie:
[jack w pldmachine SOURCES]$ cvs up apache.logrotate
U apache.logrotate
[jack w pldmachine SOURCES]$ diff -u apache.logrotate apache.logrotate.mój
--- apache.logrotate    Tue Apr 13 21:36:05 2004
+++ apache.logrotate.mój        Tue Apr 20 11:11:30 2004
@@ -1,26 +1,6 @@
-/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 {
+/var/log/httpd/*_log {
     olddir /var/log/archiv/httpd
+    sharedscripts
     postrotate
        /etc/rc.d/init.d/httpd graceful > /dev/null 2>&1 || /bin/true
     endscript
[jack w pldmachine SOURCES]$ wc -l apache.logrotate*
     27 apache.logrotate
      7 apache.logrotate.mój
-- 
Jarosław Kamper <jack w jack.eu.org>



Więcej informacji o liście dyskusyjnej pld-devel-pl