Files
nutNotify/systemd-notify
2022-09-12 19:51:12 +02:00

20 lines
280 B
Plaintext

[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