nutNotifyBoot use fct - no depend on other scripts + change systemd conditions

This commit is contained in:
belgotux
2023-01-04 03:22:53 +01:00
parent 187b910577
commit 749fde13dc
4 changed files with 36 additions and 38 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
[Unit]
Description=send mail at boot after a power loss
After=network.target postfix.service
ConditionPathExists=/etc/nut/nut.conf
ConditionPathExists=/usr/local/etc/nutNotify.conf
ConditionFileIsExecutable=/usr/local/bin/nutNotifyBoot.sh
ConditionPathIsDirectory=/var/log/nutNotify
[Service]
Type=simple