rpms/logwatch/devel logwatch-7.3.6-cron.patch, NONE, 1.1 logwatch.spec, 1.72, 1.73
Ivana Varekova (varekova)
fedora-extras-commits at redhat.com
Tue Jul 10 07:51:11 UTC 2007
Author: varekova
Update of /cvs/pkgs/rpms/logwatch/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28076
Modified Files:
logwatch.spec
Added Files:
logwatch-7.3.6-cron.patch
Log Message:
- Resolves: #246655
add cron service patch
logwatch-7.3.6-cron.patch:
--- NEW FILE logwatch-7.3.6-cron.patch ---
--- logwatch-7.3.6/scripts/services/cron.pom 2007-02-16 04:13:51.000000000 +0100
+++ logwatch-7.3.6/scripts/services/cron 2007-07-10 09:42:57.000000000 +0200
@@ -98,7 +98,13 @@ while (defined($ThisLine = <STDIN>)) {
($ThisLine =~ /INFO \(Running \@(re)?boot jobs\)/) or
($ThisLine =~ /INFO \(Skipping \@(re)?boot jobs -- not system startup\)/) or
($ThisLine =~ /INFO \(not boot nor reboot\)/) or
- ($ThisLine =~ /logfile turned over/) # newsyslog on OpenBSD
+ ($ThisLine =~ /logfile turned over/) or
+ ($ThisLine =~ /ready to process filesystem events/) or # newsyslog on OpenBSD
+ ($ThisLine =~ /loading (system|user) tables/) or
+ ($ThisLine =~ /loading table .*/) or
+ ($ThisLine =~ /cannot exec process: No such file or directory/) or
+ ($ThisLine =~ /void Inotify::Remove\(InotifyWatch\*\): removing watch failed/) or
+ ($ThisLine =~ /error: \(22\) Invalid argument/)
) {
# Ignore
} elsif (
@@ -175,6 +181,28 @@ while (defined($ThisLine = <STDIN>)) {
if ( $ntpdatemaxoffset < $offset ) { $ntpdatemaxoffset = $offset; }
} elsif ($ThisLine =~ /ntpdate\[\d+\]: no server suitable for synchronization found/) {
$ntpdatenosync++;
+ } elsif (($ThisLine =~ /incrond/) && ($ThisLine =~ /starting service/)) {
+ $INCRONDSS++;
+ } elsif (($ThisLine =~ /incrond/) && ($ThisLine =~ /stopping service/)) {
+ $INCRONDStS++;
+ } elsif (($ThisLine =~ /incrond/) && (($Table) = ($ThisLine =~ /system table (.*) created, loading/))) {
+ $INCRONDSTCr{$Table}++;
+ } elsif (($ThisLine =~ /incrond/) && (($User) = ($ThisLine =~ /table for user (.*) created, loading/))) {
+ $INCRONDUTCr{$User}++;
+ } elsif (($ThisLine =~ /incrond/) && (($Table) = ($ThisLine =~ /system table (.*) changed, reloading/))) {
+ $INCRONDSTCh{$Table}++;
+ } elsif (($ThisLine =~ /incrond/) && (($User) = ($ThisLine =~ /table for user (.*) changed, reloading/))) {
+ $INCRONDUTCh{$User}++;
+ } elsif (($ThisLine =~ /incrond/) && (($Table) = ($ThisLine =~ /system table (.*) destroyed, removing/))) {
+ $INCRONDSTDe{$Table}++;
+ } elsif (($ThisLine =~ /incrond/) && (($User) = ($ThisLine =~ /table for user (.*) destroyed, removing/))) {
+ $INCRONDUTDe{$User}++;
+ } elsif ( ($ThisLine =~ /incrond/) &&
+ ( (($Error) = ($ThisLine =~ /(cannot create watch for (system table|user) .*: \(2\) No such file or directory)/)) ||
+ (($Error) = ($ThisLine =~ /(access denied on (.*) - events will be discarded silently)/)) ||
+ (($Error) = ($ThisLine =~ /(unhandled exception occurred)/))
+ ) ) {
+ $INCRONDErr{$Error}++;
} else {
# Report any unmatched entries...
push @OtherList, "$ThisLine\n";
@@ -262,6 +290,51 @@ if($ntpdatenosync) {
print "\nNtpDate could not sync: $ntpdatenosync times\n";
}
+if ($INCRONDSS) {
+ printf "\n service incrond started " . $INCRONDSS . ": time(s)\n";
+}
+
+if ($INCRONDStS) {
+ printf "\n service incrond stoped " . $INCRONDStS . ": time(s)\n";
+}
+
+if ((%INCRONDSTCr) || (%INCRONDUTCr)) {
+ printf "\n created tables \n";
+ for $key (keys %INCRONDSTCr) {
+ print " system table " . $key . " created " . $INCRONDSTCr{$key} . ": time(s)\n";
+ }
+ for $key (keys %INCRONDUTCr) {
+ print " table for user " . $key . " ceated " . $INCRONDUTCr{$key}. ": time(s)\n";
+ }
+}
+
+if ((%INCRONDSTCh) || (%INCRONDUTCh)) {
+ printf "\n changes of tables \n";
+ for $key (keys %INCRONDSTCh) {
+ print " system table " . $key . " changed " . $INCRONDSTCh{$key} . ": time(s)\n";
+ }
+ for $key (keys %INCRONDUTCh) {
+ print " table for user " . $key . "changed " . $INCRONDUTCh{$key} . ": time(s)\n";
+ }
+}
+
+if ((%INCRONDSTDe) || (%INCRONDUTDe)) {
+ printf "\n destroyed tables \n";
+ for $key (keys %INCRONDSTDe) {
+ print " system table " . $key . " destroyed " . $INCRONDSTDe{$key} . ": time(s)\n";
+ }
+ for $key (keys %INCRONDUTDe) {
+ print " table for user ". $key ." destroyed " .$INCRONDUTDe{$key} . ": time(s)\n";
+ }
+}
+
+if (%INCRONDErr) {
+ printf "\n incrond daemon errors \n";
+ for $key (keys %INCRONDErr) {
+ print " " . $key . ": " . $INCRONDErr{$key} . " time(s)\n";
+ }
+}
+
if ($#OtherList >= 0) {
print "\n**Unmatched Entries**\n";
print @OtherList;
Index: logwatch.spec
===================================================================
RCS file: /cvs/pkgs/rpms/logwatch/devel/logwatch.spec,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- logwatch.spec 4 Jul 2007 12:26:52 -0000 1.72
+++ logwatch.spec 10 Jul 2007 07:50:38 -0000 1.73
@@ -1,7 +1,7 @@
Summary: A log file analysis program
Name: logwatch
Version: 7.3.6
-Release: 3%{?dist}
+Release: 4%{?dist}
License: MIT
Group: Applications/System
URL: http://www.logwatch.org/
@@ -18,6 +18,7 @@
Patch12: logwatch-7.3.6-audit.patch
Patch13: logwatch-7.3.6-pam_unix.patch
Patch14: logwatch-7.3.6-named3.patch
+Patch15: logwatch-7.3.6-cron.patch
Requires: textutils sh-utils grep mailx
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -43,6 +44,7 @@
%patch12 -p1
%patch13 -p1
%patch14 -p1
+%patch15 -p1
%build
@@ -155,6 +157,10 @@
%doc License project/CHANGES
%changelog
+* Tue Jul 10 2007 Ivana Varekova <varekova at redhat.com> 7.3.6-4
+- Resolves: #246655
+ add cron service patch
+
* Wed Jul 4 2007 Ivana Varekova <varekova at redhat.com> 7.3.6-3
- add named, pam_unix and audit service patches
More information about the scm-commits
mailing list