From 8a6965ceff1075ace09ba364ad7fad6f70f3362b Mon Sep 17 00:00:00 2001 From: Michael Ramsey Date: Sun, 24 Oct 2021 10:40:34 -0400 Subject: [PATCH] Create callback-restart.service --- systemd/callback-restart.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 systemd/callback-restart.service diff --git a/systemd/callback-restart.service b/systemd/callback-restart.service new file mode 100644 index 0000000..902c345 --- /dev/null +++ b/systemd/callback-restart.service @@ -0,0 +1,18 @@ +#!/bin/bash +# Short-Description: Start daemon at boot time +# Description: Enable service provided by daemon. +# Save to : /etc/systemd/system/callback-restart.service + +[Unit] +Description=Callback Restart notification +Before=shutdown.target reboot.target halt.target +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/usr/local/bin/callback-start +ExecStop=/usr/local/bin/callback-shutdown + +[Install] +WantedBy=multi-user.target