How to put scheduled restart in CentOS7?
13,111
Please try the below command. it will restart the computer in the midle of the night.
shutdown -r 0:00
Same can be done adding the below line /etc/crontab
0 0 * * * /sbin/shutdown -r now
Author by
karthikeyan p
Updated on June 14, 2022Comments
-
karthikeyan p almost 2 years
How to create scheduled restart in Centos7, I want to restart my Centos7 server for every day at 4PM