diff --git a/rootfs/usr/local/bin/start-nginx.sh b/rootfs/usr/local/bin/start-nginx.sh index e0fb1b2..5531f8d 100755 --- a/rootfs/usr/local/bin/start-nginx.sh +++ b/rootfs/usr/local/bin/start-nginx.sh @@ -72,7 +72,7 @@ CONTAINER_IP_ADDRESS="$(ip a 2>/dev/null | grep 'inet' | grep -v '127.0.0.1' | a # Overwrite variables SERVICE_PORT="6800" SERVICE_NAME="nginx" -SERVICE_COMMAND="nginx -g 'daemon off;' -c /etc/nginx/nginx.conf" +SERVICE_COMMAND="nginx -c /etc/nginx/nginx.conf" export exec_message="Starting $SERVICE_NAME on $CONTAINER_IP_ADDRESS:$SERVICE_PORT" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Pre copy commands diff --git a/rootfs/usr/local/share/template-files/config/nginx/nginx.conf b/rootfs/usr/local/share/template-files/config/nginx/nginx.conf index b514869..2eb074e 100644 --- a/rootfs/usr/local/share/template-files/config/nginx/nginx.conf +++ b/rootfs/usr/local/share/template-files/config/nginx/nginx.conf @@ -1,6 +1,7 @@ # Default nginx configuration user root; worker_processes 1; +daemon off; error_log /proc/self/fd/2 error; pid /var/run/nginx.pid;