comparison host/stop_nginx.sh @ 2136:3ca8f933209d nginx_decoupled

Initial; use ~/.nginx-luan/ as nginx master conf dir instead of trying to detect the system default.
author Violet7
date Mon, 19 Jan 2026 19:47:11 -0800
parents 6a2383baecb6
children bc999d5036fb
comparison
equal deleted inserted replaced
2135:e94d10d071e4 2136:3ca8f933209d
1 #!/bin/bash 1 #!/bin/bash
2 2
3 sudo nginx -s stop; 3 set -e
4 . nginx_common.sh
5
6 NGINX_PID_FILE="$NGINX_PID_DIR/nginx.pid"
7
8 # if file exists and is non empty
9 if [ -s "$NGINX_PID_FILE" ]; then
10 sudo nginx -c $NGINX_ROOT_CONFIG_FILE -s stop
11 else
12 echo "PID file empty or non existent, doing nothing."
13 fi