comparison host/stop_nginx.sh @ 2142:506cc134c0fe nginx_decoupled

fix
author Violet7
date Mon, 19 Jan 2026 20:59:31 -0800
parents c62dfd37545f
children
comparison
equal deleted inserted replaced
2141:c62dfd37545f 2142:506cc134c0fe
6 ps -eo pid,args | 6 ps -eo pid,args |
7 awk '/[n]ginx: master process/ {print $1}' 7 awk '/[n]ginx: master process/ {print $1}'
8 ) 8 )
9 9
10 if [ -n "$PIDS" ]; then 10 if [ -n "$PIDS" ]; then
11 kill -QUIT $PIDS 11 sudo kill -QUIT $PIDS
12 else 12 else
13 echo "No nginx master process found, not attempting to stop." 13 echo "No nginx master process found, not attempting to stop."
14 fi 14 fi