]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
added missing script/fcron.init.systemd.reboot.in
authorThibault Godouet <yo8192@users.noreply.github.com>
Fri, 16 Oct 2020 20:42:56 +0000 (21:42 +0100)
committerThibault Godouet <yo8192@users.noreply.github.com>
Fri, 16 Oct 2020 20:42:56 +0000 (21:42 +0100)
script/fcron.init.systemd.reboot.in [new file with mode: 0644]

diff --git a/script/fcron.init.systemd.reboot.in b/script/fcron.init.systemd.reboot.in
new file mode 100644 (file)
index 0000000..2967b77
--- /dev/null
@@ -0,0 +1,14 @@
+# systemd service configuration file for fcron
+# Remove 'reboot' file to ensure '@reboot' jobs run on next system boot.
+
+[Unit]
+Description=fcron reboot file clean-up
+DefaultDependencies=no
+Before=shutdown.target reboot.target halt.target
+
+[Service]
+Type=oneshot
+ExecStart=/bin/rm -f @@REBOOT_LOCK@
+
+[Install]
+WantedBy=shutdown.target reboot.target halt.target