Skip to main content

Thread: reboot chronjob not working


hi,

have added "@daily shutdown -r now" root crontab (sudo crontab -e) not seem ever run. when @ chron log using webmin can see tried run , there no error. when run manually using webmin system reboots fine, wierd. tried using reboot -f in crontab instead , worked when manually run not on schedule.

reason know didnt run on webmin shows system uptime

output of chron log:
code:
jun 26 21:17:02 grantlaptop cron[3467]: (root) cmd (   cd / && run-parts --report /etc/cron.hourly) jun 26 22:17:01 grantlaptop cron[3873]: (root) cmd (   cd / && run-parts --report /etc/cron.hourly) jun 26 23:17:01 grantlaptop cron[4269]: (root) cmd (   cd / && run-parts --report /etc/cron.hourly) jun 27 00:00:01 grantlaptop cron[4530]: (root) cmd (shutdown -r now) jun 27 00:17:01 grantlaptop cron[4630]: (root) cmd (   cd / && run-parts --report /etc/cron.hourly) jun 27 01:17:01 grantlaptop cron[5005]: (root) cmd (   cd / && run-parts --report /etc/cron.hourly) jun 27 02:17:01 grantlaptop cron[5416]: (root) cmd (   cd / && run-parts --report /etc/cron.hourly)

cron happily save output error messages...if tell to.
code:
* * * * * root /path/to/command 2>&1 /tmp/cron-result-file
cron may not know find 'shutdown' command, try including full path.
code:
* * * * * root /path/to/command 2>&1 /tmp/cron-result-file


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] reboot chronjob not working


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support