How to Reboot server for every 6 hours ?

August 5, 2015 2.2k views
Linux Commands Ubuntu

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.