A nice thing is the ability to perform actions automatically to defined times with the cron daemon.
A helpful introduction about cron can be found here: https://www.raspberrypi.org/documentation/linux/usage/cron.md
Those like me who has difficulty to use with vi, can be pleased, because the necessary command to configure sudo crontab -e opens the nano editor.
Should, for example, the Raspberry Pi do every day at 14:44 clock a healthy reboot, you have to add following to the crontab of the root user (with sudo).
17:10:33|pi@raspberrypi:~|$ sudo crontab -e
# For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command 44 14 * * * /sbin/shutdown -r now
Now, the system should make every day at 14:44 o clock a reboot.
2 replies on “Raspberry Pi – configure automatically daily restart / reboot with cron”
funktioniert leider nicht. Es passiert einfach nichts
Wie sieht Ihre Zeile zum Reboot aus?
Bsp: 44 14 * * * /sbin/shutdown -r now