Scheduled reboot with crontab didn't go ahead. Why might this be? [duplicate]
Solution 1:
Check the log to see if the cron job run at the specified time.
On Debian cron is logged in /var/log/syslog
, see it there is any error reported if the cron job was activated.
If you do grep cron /var/log/syslog
is there anything logged at the time cron was suppose to do reboot?
Also check if cron service is running, if you do systemctl status cron.service
does it say the service is active and enabled.
Cron service needs to be running in order for cron jobs to run.
It could also be an issue with cron not being able to find shutdown command, try using /usr/sbin/shutdown -r now
in cron