Владимир Томишинец %!s(int64=5) %!d(string=hai) anos
pai
achega
20c2f2753c
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      healthcheck.sh

+ 6 - 6
healthcheck.sh

@@ -1,10 +1,10 @@
 #!/bin/bash
 
-#containerstart=`stat -c %Z /proc/1`
-#curtime=`date +%s`
-#if (( curtime-containerstart < 180 )); then
-#    echo "0"
-#    exit 0
-#fi
+containerstart=`stat -c %Z /proc/1`
+curtime=`date +%s`
+if (( curtime-containerstart < 180 )); then
+    echo "0"
+    exit 0
+fi
 
 curl -f 127.0.0.1:8080/login || exit 1