From: Jakub Czajka Date: Wed, 29 Nov 2023 23:23:19 +0000 (+0100) Subject: Reboot the system daily. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=e665a3ee0ed7ea43f632c9b2a751b7b20660927b;p=cron.git Reboot the system daily. --- diff --git a/reboot.service b/reboot.service new file mode 100644 index 0000000..8d729d8 --- /dev/null +++ b/reboot.service @@ -0,0 +1,10 @@ +# Copyright (c) 2023 Jakub Czajka +# License: GPL-3.0 or later. + +[Unit] +Description=Reboot the system. +OnFailure=notify_failure@%n.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/systemctl --force reboot diff --git a/reboot.timer b/reboot.timer new file mode 100644 index 0000000..2293c3c --- /dev/null +++ b/reboot.timer @@ -0,0 +1,11 @@ +# Copyright (c) 2023 Jakub Czajka +# License: GPL-3.0 or later. + +[Unit] +Description=Reboot the system daily. + +[Timer] +OnCalendar=*-*-* 03:00:00 + +[Install] +WantedBy=timers.target