Red Hat Bugzilla – Bug 181995
/etc/cron.d seems to be ignored for cronjobs
Last modified: 2007-11-30 17:11:24 EST
Description of problem:
/etc/cron.d seems to be ignored for cronjobs after upgrading from 4.1-42 to -52,
because no cronjob from /etc/cron.d is executed (especially the "all 5" and "all
15 minute" ones).
Version-Release number of selected component (if applicable):
Everytime, see above and below:
echo "*/5 * * * * uptime" > /etc/cron.d/uptime
chmod 600 /etc/cron.d/uptime
service crond reload
I never got an e-mail with the current uptime, which is the case when using -42
Cronjobs used for vnstat package (Fedora Extras) and further one got completely
Same behaviour like in 4.1-42 again, please...
The syntax used for the cronjob line you use in an /etc/cron.d file is incorrect:
"*/5 * * * * uptime"
A 'user name' sixth field is required in /etc/cron.d files - this line should
*/5 * * * * root uptime
4.1-42 was slightly broken in the way it read /etc/cron.d/* files (Bug 163889),
which might explain why it ran the jobs while -52+ didn't.
I've just tested that this cron job works fine in /etc/cron.d/ :
* * * * * root /bin/date
sends an email every minute OK.
Hence, this bug is being closed as 'NOTABUG'. If you still cannot get the
uptime job to run after adding the sixth username field, please re-open this bug.