Red Hat Bugzilla – Bug 188501
Cronjobs from /etc/cron.d does not run
Last modified: 2007-11-30 17:11:30 EST
Description of problem:
Cron does not run jobs in the directory /etc/cron.d
Version-Release number of selected component (if applicable):
This happens for both FC3 and FC4.
Steps to Reproduce:
1. Create a crontab style file in /etc/cron.d. Make it only writeable by owner
root and not executable.
2. Set the time for the job a couple of minutes in the future
3. Look at the /var/log/cron file.
Cron does notice that the file is changed, my log looks like this:
Apr 10 19:32:01 xella35 crond: (*system*) RELOAD (/etc/cron.d/rsync-backup)
But then nothing more happens.
The job should be started.
Aha, just found it. Files in the /etc/cron.d has to have an extra field for
which user to run as. So the format should be
<min> <hour> <day> <mon> <weekday> <user> <command> ...
So this is really a documentation bug.
From 'man 5 crontab:'
Each line has five time and date fields, followed by a user name
if this is a system crontab file, followed by a command.