• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How do I schedule restarts?

I

IFeelYourPain

Guest
I have a server that is busy. Sometime it will overload and I have to manually restart it. Is it possible to schedule a restart every 2-3 days?
 
Hello,

you can add cron task directly in your Cpanel, with the command reboot

1. Go to Server >> Scheduled Tasks
2. Select the root user
3. Click "Add New Task"
4. Configure the Task with :

Switched on : checked
Minute : 0
Hour : 0
Day of the Month : */2
Month : *
Day Of Week : *
Commande : reboot

This task will reboot your server every 2 days at 00:00
 
Switched on : checked
Minute : 0
Hour : 2
Day of the Month : */2
Month : *
Day Of Week : *
Commande : reboot

This task will reboot your server every 2 days at 02:00
 
Ok thanks, easy enough. Too bad it wasn't in the FAQ though or if it was I didn't see it.
 
Back
Top