add boot and shutdown script

This commit is contained in:
Gaëtan Brogniaux
2022-09-12 19:51:12 +02:00
parent 08ec7617e4
commit 57623baab2
5 changed files with 130 additions and 24 deletions
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=send mail at boot after a power loss
After=network.target postfix.service
ConditionPathExists=/etc/nut/nut.conf
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/nutNotifyBoot.sh
SuccessExitStatus=0
[Install]
WantedBy=multi-user.target