login
Header Space

 
 

cron doesn't run commands in /etc/crontab?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <misc@...>
Date: Wednesday, March 28, 2007 - 9:41 am

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 ]------------------*
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cron doesn't run commands in /etc/crontab?, Will Maier, (Wed Mar 28, 9:41 am)
Re: cron doesn't run commands in /etc/crontab?, Lars D. Noodén, (Wed Mar 28, 10:28 am)
Re: cron doesn't run commands in /etc/crontab?, Peter Strömberg, (Wed Mar 28, 10:15 am)
Re: cron doesn't run commands in /etc/crontab?, Otto Moerbeek, (Wed Mar 28, 10:03 am)
Re: cron doesn't run commands in /etc/crontab?, Stuart Henderson, (Wed Mar 28, 10:01 am)
Re: cron doesn't run commands in /etc/crontab?, Paul de Weerd, (Wed Mar 28, 9:58 am)
Re: cron doesn't run commands in /etc/crontab?, Will Maier, (Wed Mar 28, 10:36 am)
speck-geostationary