Browse Source

Modify healthcheck

Vadim Surkov 5 years ago
parent
commit
58480faed0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      healthcheck.sh

+ 1 - 1
healthcheck.sh

@@ -5,7 +5,7 @@ _LOGDIFF=600
 # Log path
 _LOGDIR="/root/.wine/drive_c/services/analis/log"
 # Discover latest modified file
-_LOGFILE=$( ls -t -d -1 ${_LOGDIR}/* | head -1 )
+_LOGFILE=$( ls -t -d -1 ${_LOGDIR}/AnalisatorService* | head -1 )
 
 #Check difference between system time and latest modified file in logdir - if it's greater then $_LOGDIFF, then container is not healty
 if [[  $[ $(date +%s) - $(stat -c %Y ${_LOGFILE}) ] -gt ${_LOGDIFF} ]]; then