Bug 718448 - default cron.d/0hourly fails for run-parts
Summary: default cron.d/0hourly fails for run-parts
Keywords:
Status: CLOSED DUPLICATE of bug 540477
Alias: None
Product: Fedora
Classification: Fedora
Component: crontabs
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-03 04:46 UTC by Paul
Modified: 2011-07-03 19:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-03 09:28:58 UTC
Type: ---


Attachments (Terms of Use)

Description Paul 2011-07-03 04:46:45 UTC
Description of problem:
A default full installation of f14 x86_64 gives a /etc/cron.d/0hourly file whose job fails.

The default /etc/crod.d0/hourly is:
    SHELL=/bin/bash
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    MAILTO=root
    01 * * * * root run-parts /etc/cron.hourly

The mail in /var/spool/mail/root shows that it failed:
===
From root  Sat Jul  2 21:01:01 2011
Return-Path: <root>
Received: from localhost.localdomain (yoyo [127.0.0.1])
    by localhost.localdomain (8.14.4/8.14.4) with ESMTP id p63411DS002589
    for <root>; Sat, 2 Jul 2011 21:01:01 -0700
Received: (from root@localhost)
    by localhost.localdomain (8.14.4/8.14.4/Submit) id p63411MU002587;
    Sat, 2 Jul 2011 21:01:01 -0700
Date: Sat, 2 Jul 2011 21:01:01 -0700
Message-Id: <201107030401.p63411MU002587>
From: root (Cron Daemon)
To: root
Subject: Cron <root@yoyo> run-parts /etc/cron.hourly
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

/etc/cron.hourly/mcelog.cron:

read: No such device
===
As this is the default that one gets on a fresh install, it shouldn't fail!

I can't tell if it is a problem with cron, crontab, whatever or run-parts or something else. As I am having problems getting my own cron job to run, I really need to know that the default from a fresh install works "out of the box".

Thank you in advance,
Paul

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


How reproducible:
Check /var/spool/mail/root after hourly cron job is run to see problem


Steps to Reproduce:
1. Wait until the clock is "on the hour" and 0hourly runs
2. In a terminal window, su -l and see the "You have new mail" message
3. Read the last mail from cron
  
Actual results:
Errors in execution


Expected results:
No errors in execution

Additional info:
Please let me know what else I can give to help

Comment 1 Michael Schwendt 2011-07-03 09:28:58 UTC

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

Comment 2 Paul 2011-07-03 19:25:34 UTC
Michael:

Thanks for checking this out ... I did a bug search on the above mentioned cron, crontab, whatever or run-parts before submitting this and it never occurred to me to search for "hourly". Apologies.

Paul


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