2 # ln -s ../../../root/bin/shutdown-detect.service /etc/systemd/system/shutdown-detect.service; systemctl enable shutdown-detect.service
3 # https://unix.stackexchange.com/a/41756/296319
6 Description=shutdown-detect
11 ExecStart=/root/bin/shutdown-detect-boot
12 ExecStop=/root/bin/shutdown-detect
15 WantedBy=multi-user.target