Bug 134980

Summary: /etc/cron.daily/fixfiles.cron generates daily email
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, link, pgraner, redhat-bugzilla
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: 2004-10-12 15:42:57 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:
Bug Depends On:    
Bug Blocks: 123268    
Attachments:
Description Flags
Add minimal message body for all email.
none
Redirect /sbin/fixfiles STDOUT to /dev/null. none

Description Orion Poplawski 2004-10-07 17:30:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20040922

Description of problem:
I get the following email daily:

/etc/cron.daily/fixfiles.cron:

logging to /dev/null
Null message body; hope that's ok

This is annoying.  Email should only be generated if there is an issue.

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

How reproducible:
Always

Steps to Reproduce:
1. Install policycoreutils-1.17.5-6
2.
3.
    

Additional info:

Comment 1 Terje Bless 2004-10-10 17:49:09 UTC
Created attachment 104988 [details]
Add minimal message body for all email.

Attached a minimal patch to provide a message body on all email messages;
thus shutting up /bin/mail and avoiding cron sending out email about the
"null message body".

Comment 2 Terje Bless 2004-10-10 18:14:48 UTC
Created attachment 104989 [details]
Redirect /sbin/fixfiles STDOUT to /dev/null.

Primitive/brute-force patch to direct /sbin/fixfiles's warning when logging
to /dev/null to, uhm, /dev/null. :-)

This should probably be fixed in /sbin/fixfiles instead.

Comment 3 Daniel Walsh 2004-10-12 15:42:57 UTC
Null Message Patch added to policycoreutils-1_17_6-2

/sbin/fixfiles has been changed to no longer send anything to STDOUT.  
It now defaults to syslog unless an alternate log file is specified.

Also moved to cron.weekly.

Dan