X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Fshutdown-detect.service;fp=bin%2Fshutdown-detect.service;h=88cd5a170af9bcc65fc091c14d17dfae49baa34d;hp=0000000000000000000000000000000000000000;hb=4beba551a913cd5a606759a7657db01a7c1cdfcb;hpb=575adc09ee2f6fc3223b8d43f545180cee736801 diff --git a/bin/shutdown-detect.service b/bin/shutdown-detect.service new file mode 100644 index 0000000..88cd5a1 --- /dev/null +++ b/bin/shutdown-detect.service @@ -0,0 +1,15 @@ +# jankratochvil: +# ln -s ../../../root/bin/shutdown-detect.service /etc/systemd/system/shutdown-detect.service; systemctl enable shutdown-detect.service +# https://unix.stackexchange.com/a/41756/296319 + +[Unit] +Description=shutdown-detect + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/root/bin/shutdown-detect-boot +ExecStop=/root/bin/shutdown-detect + +[Install] +WantedBy=multi-user.target