rpms/logwatch/devel logwatch-7.3.6-cron2.patch, NONE, 1.1 logwatch-7.3.6-cron.patch, 1.1, 1.2 logwatch.spec, 1.74, 1.75

Ivana Varekova (varekova) fedora-extras-commits at redhat.com
Thu Aug 9 14:00:37 UTC 2007


Author: varekova

Update of /cvs/pkgs/rpms/logwatch/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24424

Modified Files:
	logwatch-7.3.6-cron.patch logwatch.spec 
Added Files:
	logwatch-7.3.6-cron2.patch 
Log Message:
- add cron patch


logwatch-7.3.6-cron2.patch:

--- NEW FILE logwatch-7.3.6-cron2.patch ---
--- logwatch-7.3.6/scripts/services/cron.pom	2007-08-09 15:36:39.000000000 +0200
+++ logwatch-7.3.6/scripts/services/cron	2007-08-09 15:35:34.000000000 +0200
@@ -203,6 +203,10 @@ while (defined($ThisLine = <STDIN>)) {
       (($Error) = ($ThisLine =~ /(cannot exec process.*)/)) 
       )  ) {
       $INCRONDErr{$Error}++;
+   } elsif ( ($ThisLine =~ /crond/) &&
+	(($Error) = ($ThisLine =~ /(failed to open PAM security session: Permission denied)/)) 
+	) {
+      $CRONDErr{$Error}++;
    } else {
       # Report any unmatched entries...
       push @OtherList, "$ThisLine\n";
@@ -328,6 +332,14 @@ if ((%INCRONDSTDe) || (%INCRONDUTDe)) {
   }
 }
 
+if (%CRONDErr) {
+  printf "\n  crond daemon errors \n";
+  for $key (keys %CRONDErr) {
+    print "    " . $key . ": " . $CRONDErr{$key} . " time(s)\n";
+  }
+}
+          
+
 if (%INCRONDErr) {
   printf "\n  incrond daemon errors \n";
   for $key (keys %INCRONDErr) {

logwatch-7.3.6-cron.patch:

Index: logwatch-7.3.6-cron.patch
===================================================================
RCS file: /cvs/pkgs/rpms/logwatch/devel/logwatch-7.3.6-cron.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- logwatch-7.3.6-cron.patch	10 Jul 2007 07:50:38 -0000	1.1
+++ logwatch-7.3.6-cron.patch	9 Aug 2007 14:00:33 -0000	1.2
@@ -1,6 +1,6 @@
 --- 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>)) {
++++ logwatch-7.3.6/scripts/services/cron	2007-08-09 14:35:43.000000000 +0200
+@@ -98,7 +98,12 @@ 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
@@ -9,13 +9,12 @@
 +      ($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>)) {
+@@ -175,6 +180,29 @@ while (defined($ThisLine = <STDIN>)) {
  	  if ( $ntpdatemaxoffset < $offset ) { $ntpdatemaxoffset = $offset; }
     } elsif ($ThisLine =~ /ntpdate\[\d+\]: no server suitable for synchronization found/) {
       $ntpdatenosync++;
@@ -38,7 +37,8 @@
 +   } 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)/)) 
++      (($Error) = ($ThisLine =~ /(unhandled exception occurred)/)) ||
++      (($Error) = ($ThisLine =~ /(cannot exec process.*)/)) 
 +      )  ) {
 +      $INCRONDErr{$Error}++;
     } else {


Index: logwatch.spec
===================================================================
RCS file: /cvs/pkgs/rpms/logwatch/devel/logwatch.spec,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- logwatch.spec	10 Jul 2007 09:16:40 -0000	1.74
+++ logwatch.spec	9 Aug 2007 14:00:33 -0000	1.75
@@ -1,7 +1,7 @@
 Summary: A log file analysis program
 Name: logwatch
 Version: 7.3.6
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: MIT
 Group: Applications/System
 URL: http://www.logwatch.org/
@@ -20,6 +20,7 @@
 Patch14: logwatch-7.3.6-named3.patch
 Patch15: logwatch-7.3.6-cron.patch
 Patch16: logwatch-7.3.6-zz-disk_space.patch
+Patch17: logwatch-7.3.6-cron2.patch
 
 Requires: textutils sh-utils grep mailx
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -47,6 +48,7 @@
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
 
 %build
 
@@ -159,6 +161,9 @@
 %doc License project/CHANGES 
 
 %changelog
+* Thu Aug  9 2007 Ivana Varekova <varekova at redhat.com> 7.3.6-6
+- add cron patch
+
 * Tue Jul 10 2007 Ivana Varekova <varekova at redhat.com> 7.3.6-5
 - Resolves: #247511
   add zz-disk_space patch




More information about the fedora-extras-commits mailing list