| 
					
				 | 
			
			
				@@ -7,10 +7,10 @@ _LOGDIFF=600 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # Log path 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 _LOGDIR="/opt/analis/log" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 # Discover latest modified file 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-_LOGFILE=${_LOGDIR}AnalisatorService_$(date +%d-%m-%Y) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_LOGFILE=${_LOGDIR}/AnalisatorService_$(date +%d-%m-%Y).txt 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #Check is it time to run _LOGFILE check 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-if [[  $[ $(date +%s) - $(stat -c %Y "/opt/analis/checkfile.status") ] -gt ${LOGSCHEDULE} ]]; then  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+if [[  $[ $(date +%s) - $(stat -c %Y "/opt/analis/checkfile.status") ] -gt ${LOGSCHEDULE} ]]; then 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     touch /opt/analis/checkfile.status 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     #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 
			 |