how to reboot DietPi always at 8AM with Cron?

I’m new with Cron and I don’t know how to do it, and even with tutorials I don’t make works

I’m thinking you could add a line to the /etc/cron.daily file like this

0 8 * * * /sbin/shutdown -r

It should reboot daily at 8AM.

Or better yet go to dietpi-launcher ->Dietpi-Cron and adjust the time from there.
Then add the command in cron.daily

Please do not add it to cron.daily!! The scripts inside are running in parallel and AFAIK the shutdown/reboot would break all other daily tasks.

Create a crontab entry for root user instead:

  1. crontab -e
  2. add the line mentioned by Edward: 0 8 * * * /sbin/shutdown -r
  3. save with ctrl + o
  4. verify: crontab -l

Thx, for the info :slight_smile: