mirror of
				https://github.com/casjaysdevdocker/lighttpd
				synced 2025-11-04 01:02:33 -05:00 
			
		
		
		
	🗃️ Committing everything that changed 🗃️
This commit is contained in:
		@@ -19,7 +19,7 @@
 | 
			
		||||
# @@Template         :  other/start-service
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
# Set functions
 | 
			
		||||
__pgrep() { ps aux 2>/dev/null | grep -F "$@" | grep -qv 'grep' || return 10; }
 | 
			
		||||
__pgrep() { ps aux 2>/dev/null | grep -Fw " $@" | grep -qv 'grep' || return 10; }
 | 
			
		||||
__find() { find "$1" -mindepth 1 -type f,d 2>/dev/null | grep '^' || return 10; }
 | 
			
		||||
__curl() { curl -q -LSsf -o /dev/null -s -w "200" "$@" 2>/dev/null || return 10; }
 | 
			
		||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 | 
			
		||||
@@ -108,7 +108,7 @@ healthcheck)
 | 
			
		||||
  if __pgrep "$SERVICE_NAME"; then
 | 
			
		||||
    echo "$SERVICE_NAME is running"
 | 
			
		||||
  else
 | 
			
		||||
    exec lighttpd -f /config/lighttpd.conf -D
 | 
			
		||||
    exec lighttpd -f /config/lighttpd/lighttpd.conf -D
 | 
			
		||||
  fi
 | 
			
		||||
  ;;
 | 
			
		||||
esac
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user