Bug 163725

Summary: Logrotate Fails and doesn't give enough info
Product: [Fedora] Fedora Reporter: Scott Baker <scott>
Component: logrotateAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-27 08:32:51 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 Scott Baker 2005-07-20 17:38:12 UTC
Description of problem:
If logrotate fails running a postrotate script, it doesn't indicate in the
output which failed.

Steps to Reproduce:
1. Create or Edit a Logrotate entry
2. Add a postrotate script that will fail. something like /bin/false
3. Wait for logrotate to run and get the error message below
  
Actual results:
/etc/cron.daily/logrotate:

error: error running postrotate script

Expected results:
Something like:
/etc/cron.daily/logrotate:

error: error running postrotate script for /var/log/messages

Additional info:
Presumably it will fail on a prerotate script too, but I haven't tested that.