i want run a CronJob for reboot the server once or twice at month. I do:
crontab -e
than:
51 9 5 * * /usr/sbin/reboot
This should reboot at 5 day of the month at 9:51, it works the server is reboot but after 30 seconds the reboot continue generating an infinite loop.
Why this happen and how to fix? The only way i have to stop this is remove the CronJob so I'm unable to set an automated reboot once a month.
Any help will be appreciated.
Update 1: The issue is not caused by the too short time of the cron, even if i add +5 minutes or delay the reboot still happen in loop.