I have used cron in the past but this one has got me licked. Does cron work on FC6? I have two different boxes that are pretty much vanilla installs and they both exhibit the same behaviour, cron doesn't work and I can't really determine if it is even there.
Here is the scoop, I am just trying to run a simple test job now, all of the following as root:
ran:
crontab -e
added the line:
* * * * * echo "1 " >> /tmp/test.log
which I thought would add "1 " to a temp file every minute. Except nothing happens at all from the cron job. If I run the line from a shell, it works fine.
so I did some poking around.
[root@MASKED~]# chkconfig --list | grep cron
anacron 0
ff 1
ff 2
n 3
n 4
n 5
n 6
ff
strange....no cron?
[root@MASKED tmp]# service crond restart
Stopping crond: cannot stop crond: crond is not running. [FAILED]
Starting crond: /bin/bash: crond: command not found FAILED]
Again.... where did cron go?
[root@sstrsr001 tmp]# whereis cron
cron: /etc/cron.d /etc/cron.weekly /etc/cron.hourly /etc/cron.daily /etc/cron.monthly
Okay...looks like something is there. crontab certainly works.
find / -name cron*
results:
/var/spool/cron
/var/spool/anacron/cron.monthly
/var/spool/anacron/cron.weekly
/var/spool/anacron/cron.daily
/var/log/cron
/usr/libexec/webmin/mscstyle3/cron
/usr/libexec/webmin/cluster-cron/cron.pl
/usr/libexec/webmin/caldera/cron
/usr/libexec/webmin/cron
/usr/libexec/webmin/cron/cron_editor.pl
/usr/libexec/webmin/cron/cron-lib.pl
/usr/share/man/man1p/crontab.1p.gz
/usr/share/vim/vim70/syntax/crontab.vim
/usr/share/logwatch/default.conf/services/cron.conf
/usr/share/logwatch/default.conf/logfiles/cron.conf
/usr/share/logwatch/scripts/services/cron
/usr/share/logwatch/scripts/logfiles/cron
/usr/bin/crontab
/etc/cron.monthly
/etc/sysconfig/crond
/etc/cron.weekly
/etc/rc.d/init.d/crond
/etc/cron.hourly
/etc/webmin/cron
/etc/cron.d
/etc/pam.d/crond
/etc/crontab
/etc/cron.daily
/selinux/booleans/crond_disable_trans
Is it me, or is cron gone? I mean what am I doing wrong here?
Any help is appreciated. TIA!