From e665a3ee0ed7ea43f632c9b2a751b7b20660927b Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Thu, 30 Nov 2023 00:23:19 +0100 Subject: [PATCH] Reboot the system daily. --- reboot.service | 10 ++++++++++ reboot.timer | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 reboot.service create mode 100644 reboot.timer 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 -- 2.39.5