I’d like to be able to schedule a Linux server reboot at a specific time, but not regularly. How can I do this without adding and removing cron entries?
You can use the shutdown command with -r as the argument. Instead of using shutdown now, you can add time as parameter, for example:
[[email protected] /]# shutdown -r 12:05
The above command will then issue broadcast messages to the console as well as user shells stating:
Broadcast message from root (pts/9) (Wed Oct 14 11:55:55 2009):
The system is going DOWN for reboot in 10 minutes!