fix boot service with sleep for curl
This commit is contained in:
+2
-2
@@ -47,9 +47,9 @@ if [ -e $flagfile ] ; then
|
|||||||
mail)
|
mail)
|
||||||
sendMail "$subjectMail" "$text" ;;
|
sendMail "$subjectMail" "$text" ;;
|
||||||
pushbullet)
|
pushbullet)
|
||||||
sendPushBullet "$pushbulletSubject" "$text" ;;
|
sleep 30; sendPushBullet "$pushbulletSubject" "$text" ;;
|
||||||
telegram)
|
telegram)
|
||||||
sendTelegram "$text" "$telegramSubject" ;;
|
sleep30; sendTelegram "$text" "$telegramSubject" ;;
|
||||||
esac
|
esac
|
||||||
rm $flagfile
|
rm $flagfile
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=send mail at boot after a power loss
|
Description=send mail at boot after a power loss
|
||||||
After=network.target postfix.service
|
After=network.target network-online.target nss-lookup.target postfix.service
|
||||||
ConditionPathExists=/usr/local/etc/nutNotify.conf
|
ConditionPathExists=/usr/local/etc/nutNotify.conf
|
||||||
ConditionFileIsExecutable=/usr/local/bin/nutNotifyBoot.sh
|
ConditionFileIsExecutable=/usr/local/bin/nutNotifyBoot.sh
|
||||||
ConditionPathIsDirectory=/var/log/nutNotify
|
ConditionPathIsDirectory=/var/log/nutNotify
|
||||||
|
|||||||
Reference in New Issue
Block a user