From 0dda75b56ade2af0e43eb2102eed6903253e4af4 Mon Sep 17 00:00:00 2001 From: stebifan Date: Sat, 5 Mar 2016 14:34:33 +0100 Subject: [PATCH] Update keepalive.exit.sh.j2 --- files/keepalive.exit.sh.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/keepalive.exit.sh.j2 b/files/keepalive.exit.sh.j2 index 44c8fe6..0daf59c 100644 --- a/files/keepalive.exit.sh.j2 +++ b/files/keepalive.exit.sh.j2 @@ -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