[Logwatch-Devel] small patch for syslogd script

Markus Lude lude at informatik.uni-tuebingen.de
Mon Aug 21 09:44:20 MST 2006


Hello,
the shutdown message under solaris 9 currently appears under unmatched
entries. A patch against current CVS to ignores this is attached.

Regards,
Markus

-------------- next part --------------
--- syslogd.14	2006-08-21 18:40:50.854486000 +0200
+++ syslogd	2006-08-21 18:41:07.472824000 +0200
@@ -15,7 +15,7 @@
 
 while (defined($ThisLine = <STDIN>)) {
    chomp($ThisLine);
-   if ( $ThisLine =~ /^exiting on signal 15$/ ) {
+   if ( $ThisLine =~ /^(exiting|going down) on signal 15$/ ) {
       #$Kills++;
    }
    elsif ($ThisLine =~ /^syslogd .* restart\.$/) {


More information about the Logwatch-Devel mailing list