Bug 90695

Summary: logrotate exit value is not logged to syslog. Patch proposed
Product: [Retired] Red Hat Linux Reporter: Hans Lambermont <h.lambermont>
Component: logrotateAssignee: Elliot Lee <sopwith>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: low Docs Contact:
Priority: low    
Version: 8.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.6.9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-09 15:52:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hans Lambermont 2003-05-12 16:23:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20030509

Description of problem:
proposed logrotate.cron patch:

--- logrotate.cron      Mon May 12 18:16:04 2003
+++ lc2 Mon May 12 18:20:12 2003
@@ -1,3 +1,8 @@
 #!/bin/sh

 /usr/sbin/logrotate /etc/logrotate.conf
+EXITVALUE=$?
+if [ $EXITVALUE -ne 0 ]; then
+    /usr/bin/logger -t logrotate ALERT exited abnormally with [$EXITVALUE]
+fi
+

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. not applicable
2.
3.
    

Additional info:

Comment 1 Elliot Lee 2003-07-09 15:52:25 UTC
Applied