Page 1 of 1

How to reboot your Ubuntu Server Everyday?

Posted: Mon Sep 04, 2017 10:58 am
by arnlweb
Reboot server at 3:00am + 5 minutes everyday.

Edit crontab:

Code: Select all

sudo crontab -e
Add this line and save the file:

Code: Select all

0 3   *   *   *    /sbin/shutdown -r +5
Remember: use crontab -e as root, because shutdown needs root permission.