hafansa
By:
hafansa

How to Reboot server for every 6 hours ?

August 5, 2015 1.3k views
Linux Commands Ubuntu

Hi
Does anyone know how to reboot droplet using cron job for every 6 hours ?

1 Answer

Just open

# sudo crontab -e

and there you have to make the following new entry (in a new line):

* */6 * * * root /sbin/shutdown -r now
Have another answer? Share your knowledge.