Issue with cronjob to reboot the server: it create a loop
by mark87 from LinuxQuestions.org on (#54BFD)
Hi,
I'm on Centos 7.8 in a VPS.
I need to set a cronjob to reboot the server once a month.
From the root user i use
Code:crontab -ethan inside:
Code:51 9 5 * * /usr/sbin/rebootThe cronjob works and at the day and time will reboot the server but after that the cronjob is repeated every 30 seconds so the server continue to reboot.
I don't know why this happen and how to diagnose and fix.
Any idea?
Thanks


I'm on Centos 7.8 in a VPS.
I need to set a cronjob to reboot the server once a month.
From the root user i use
Code:crontab -ethan inside:
Code:51 9 5 * * /usr/sbin/rebootThe cronjob works and at the day and time will reboot the server but after that the cronjob is repeated every 30 seconds so the server continue to reboot.
I don't know why this happen and how to diagnose and fix.
Any idea?
Thanks