Bug 194081 - anacron with cron spam root mailbox
Summary: anacron with cron spam root mailbox
Keywords:
Status: CLOSED DUPLICATE of bug 191410
Alias: None
Product: Fedora
Classification: Fedora
Component: anacron
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-05 17:40 UTC by Michal Jaegermann
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-06-05 17:56:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2006-06-05 17:40:42 UTC
Description of problem:

If timing is "right" then whomever gets root messages is 
subjected to messages like "anacron: Cannot run - another
anacron process is already running.: Resource deadlock avoided".
Fine and dandy but really usefulness of such information
is not very high.  This one gets from "Anacron job 'cron.daily'"
and 'cron.weekly' and 'cron.monthly'.

If there is no better way to shut that down then can we
have at least '>/dev/null 2>&1' in corresponding scripts?
Or drop with grep these "deadlock" message to a bitbucket
if /dev/null treatment could remove something really important?

Another option would be a guard in those scripts in this style:

pgrep anacron >/dev/null || anacron -u cron.daily

I guess that an assumption that 'procps' package is present is
quite safe or "type -p pgrep" can be tested before we are trying
to use it. Say

[ "$(type -p pgrep)" ] && pgrep anacron >/dev/null && exit 1
anacron -u cron.daily

or something similar.

Version-Release number of selected component (if applicable):
anacron-2.3-38.FC6

Comment 1 Jason Vas Dias 2006-06-05 17:56:34 UTC

*** This bug has been marked as a duplicate of 191410 ***


Note You need to log in before you can comment on or make changes to this bug.