According to cron(8), cron should be able to read commands from a
properly formatted and chmoded /etc/crontab file. I've created such
a file, but I can't seem to get cron to run the test command in it.
# cat <<EOF > /etc/crontab
*/1 * * * * /usr/bin/touch /tmp/crontest
EOF
# chmod 0600 /etc/crontab
cron then successfully loads the changes made to that file:
Mar 28 07:23:01 lass cron[11652]: (*system*) RELOAD (/etc/crontab)
I can also verify that the system file is loaded by watching the
output of `cron -x load`. The command is valid per crontab(5) and
works when inserted in root's tab using `crontab -e`.
After the system tab is reloaded, cron fails to run any commands
listed there: no CMD messages are logged (or seen in the debugging
output) and the file is never touched.
I've tried to get this to work on a semi-recent -current/i386 as
well as the latest snapshot (also i386) with no luck. I browsed the
code, but didn't see any obvious problems.
Any ideas?
--
o--------------------------{ Will Maier }--------------------------o
| web:.......http://www.lfod.us/ | email.........willmaier@ml1.net |
*------------------[ BSD Unix: Live Free or Die ]------------------*
| David Miller | [GIT]: Networking |
| Linus Torvalds | Linux 2.6.26-rc4 |
| Fred . | Please add ZFS support (from GPL sources) |
| Greg KH | Linux 2.6.25.10 |
git: | |
| Alexander Gladysh | [Q] Encrypted GIT? |
| Kevin Leung | Edit log message after commit |
| Pietro Mascagni | GIT vs Other: Need argument |
| Michael Hendricks | removing content from git history |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Edwin Eyan Moragas | poll(2) vs kqueue(2) performance |
| Didier Wiroth | win32-codecs, avi and amd64 question |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Daniel Brewer | Re: fsync performance hit on 1.6.1 |
| Hubert Feyrer | Compressed vnd handling tested successfully |
| Elad Efrat | Integrating securelevel and kauth(9) |
| YAMAMOTO Takashi | yamt-km branch |
