Files
nutNotify/systemd-notify
2023-01-05 01:38:44 +01:00

22 lines
434 B
Plaintext

[Unit]
Description=send mail at boot after a power loss
After=network.target network-online.target nss-lookup.target postfix.service
ConditionPathExists=/usr/local/etc/nutNotify.conf
ConditionFileIsExecutable=/usr/local/bin/nutNotifyBoot.sh
ConditionPathIsDirectory=/var/log/nutNotify
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/local/bin/nutNotifyBoot.sh
SuccessExitStatus=0
[Install]
WantedBy=multi-user.target