SF.net SVN: logwatch:[292] trunk/scripts/services/cron
[email protected] Fri, 27 Mar 2015 15:35:49 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 292
http://sourceforge.net/p/logwatch/code/292
Author: opoplawski
Date: 2015-03-27 15:35:48 +0000 (Fri, 27 Mar 2015)
Log Message:
-----------
[cron] Handle shutdown messages from EL6
Modified Paths:
--------------
trunk/scripts/services/cron
Modified: trunk/scripts/services/cron
===================================================================
--- trunk/scripts/services/cron 2015-03-25 16:21:19 UTC (rev 291)
+++ trunk/scripts/services/cron 2015-03-27 15:35:48 UTC (rev 292)
@@ -114,6 +114,7 @@
$Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
$Startups = 0;
+$Shutdowns = 0;
$Reloads = 0;
$MailErrors = 0;
$BFMFile = 0;
@@ -165,6 +166,8 @@
$Runs->{$User}->{'personal crontab deleted'}++;
} elsif ($ThisLine =~ /^STARTUP \(.*\)\s*$/ ) {
$Startups++;
+ } elsif ($ThisLine =~ /^INFO \(Shutting down\)/ ) {
+ $Shutdowns++;
} elsif ( $ThisLine =~ /^RELOAD \(.+\)\s*$/ ) {
$Runs->{$User}->{'personal crontab reloaded'}++;
} elsif ( $ThisLine =~ /^MAIL \(mailed \d+ bytes of output but got status [^ ]+/) {
@@ -321,9 +324,13 @@
}
if ($Startups > 0) {
- print "\nCRON Restarted $Startups Time(s)\n";
+ print "\nCRON Started $Startups Time(s)\n";
}
+ if ($Shutdowns > 0) {
+ print "\nCRON Shutdown $Shutdowns Time(s)\n";
+ }
+
if ($Reloads > 0) {
print "\nCRON Reloaded system crontab $Reloads Time(s)\n";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/