|
@@ -12,7 +12,7 @@ curl -f -H 'Host:demo.infoclinica.ru' 127.0.0.1:9000/login || exit 1
|
|
|
|
|
|
if [ -f /tmp/dead ];then
|
|
|
dead_to_time=$(cat /tmp/dead)
|
|
|
- if (( ${curtime} > ${dead_to_time} )); then echo "${curtime} > ${dead_to_time}" >> /tmp/dead_analize;else echo "${curtime} < ${dead_to_time}" >> /tmp/dead_analize;fi
|
|
|
+ if (( ${curtime} > ${dead_to_time} ));then kill 1;else exit 0;fi
|
|
|
else
|
|
|
|
|
|
ping -c3 $(cat /tmp/admin_ip)
|