Update keepalive.exit.sh.j2

This commit is contained in:
stebifan 2016-03-05 14:34:33 +01:00
parent 18ef69929c
commit 0dda75b56a

View File

@ -1,5 +1,6 @@
#!/bin/bash
#Variablen
while [ true ] ; do
if [ `/bin/ps -ef | /bin/grep keepalive.sh | /usr/bin/wc -l` -gt 3 ]; then
echo größer
exit 0
@ -80,3 +81,5 @@ else
curl -X POST --data-urlencode 'payload={"text": "{{ sn_hostname }} nicht pingbar. services auf {{ sn_hostname }} neu gestartet", "channel": "#technik", "username": "{{ sn_hostname }}", "icon_emoji": ":warning:"}' https://hooks.slack.com/services/{{ slack_token }}
fi
fi
sleep 60
done