Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#24293 - Cronie doesn't execute jobs after PC restart
Attached to Project:
Arch Linux
Opened by Clouseau2 (Clouseau2) - Sunday, 15 May 2011, 18:40 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 16 May 2011, 17:49 GMT
Opened by Clouseau2 (Clouseau2) - Sunday, 15 May 2011, 18:40 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 16 May 2011, 17:49 GMT
|
DetailsDescription:
As described here https://bbs.archlinux.org/viewtopic.php?id=118921 Cronie ignores crontab -e after restart of computer. If I reenter through "crontab -e" the same options and restart crond daemon it works. But if I restart computer it doesn't work anymore until I repeat "crontab -e" and restart crond daemon. Also it doesnt work with the same options in /etc/cron.d/ directory... Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: 1) add script in /etc/cron.d/ or via crontab -e in example 30 20 * * * /usr/local/bin/test 2) restart crond daemon and afterwards restart computer 3)the "test" is NOT executed at 20:30 |
This task depends upon
hwclock is set tu UTC:
hwclock -rD
Time read from Hardware Clock: 2011/05/16 07:36:36
Hw clock time : 2011/05/16 07:36:36 = 1305531396 seconds since 1969
Pon 16 Svi 2011 09:36:36 -0.532015 seconds
date -u
Pon Svi 16 07:36:53 UTC 2011
date
Pon Svi 16 09:37:13 CEST 2011
Clocks are set right.
Obviously, cron jobs still work for most of us that switched to cronie...
- Did you change anything related to the configuration of cronie?
- Had you changed anything related to the configuration of dcron?
- Please paste the output of `ls -la /var/spool/cron`
- Please paste the output of `cat /etc/conf.d/crond`
- Just after you reboot your computer, does `ps auxw | grep crond` output anything?
At home were the problem persists I have networkmanager, ntpd and no hwclock. The network is established through "kde-plasma-networkmanager". Is Cronie senstive to ntpd? Will test it at home and will post back if I managed to get it work...
Also the entry in "crontab -e" is in this format:
"20 6 * * * /usr/local/bin/test"
but the entry in /etc/cron.d/something must be given explicitly a user also to get it work:
"20 6 * * * root /usr/local/bin/test"
ls -la /var/spool/cron/
-rw------- 1 root root 0 Svi 16 12:04 root
cat /etc/conf.d/crond
# Settings for the CRON daemon.
# CRONDARGS= : any extra command-line startup arguments for crond
CRONDARGS=
cat /var/spool/cron/root
00 22 * * * /usr/local/bin/rsyncbackup.sh