configs with dots in file name not working in /etc/cron.d
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cron (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cron
I configured cron jobs with config file:
/etc/
and it not working.
I spend couple of hours to understand the problem.
Fix is to rename file withowt dots in the name:
/etc/cron.d/job
is working.
Renaming back to job.cron or other name with the dot in the name cause cron to not read this file.
I just switched to Ubuntu Server from Fedora and it works before on those distributive.
I can't find any error messages in syslog event with -L9 command line in cron daemon.
I can't find any warning in man page or readme document about file names.
I think there are 2 possible ways to fix this:
1) put a WARNING about file names with dots (like "myjob.cron") in manpage;
2) make cron working with those files as other distro do (ex. Fedora)
This is, in fact, documented. See: manpages. ubuntu. com/manpages/ maverick/ en/man8/ cron.8. html
http://
Quoting (2nd paragraph):
Additionally, cron reads the files in /etc/cron.d [...] Files must conform to the same naming convention as used by run-parts(8): they must consist solely of upper- and lower-case letters, digits, underscores, and hyphens. [...]