Skip to content

Instantly share code, notes, and snippets.

@pvilas
Created January 24, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvilas/84000064c7068ff614cedf9ac04caf21 to your computer and use it in GitHub Desktop.
Save pvilas/84000064c7068ff614cedf9ac04caf21 to your computer and use it in GitHub Desktop.
Rebootar màquina cada dia

Crear fitxer a /etc/cron.daily/zz-reboot

#!/bin/sh
shutdown -r now

i fer sudo chmod a+x zz-reboot

En ubuntu, s'executa cada dia a les 06:25h, ho podem comprovar fent

cat /etc/crontab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment