Mercurial Hosting > luan
diff host/stop_nginx.sh @ 2141:c62dfd37545f nginx_decoupled
use regex trick to stop stop_nginx.sh from detecting itself
| author | Violet7 |
|---|---|
| date | Mon, 19 Jan 2026 20:56:48 -0800 |
| parents | bc999d5036fb |
| children | 506cc134c0fe |
line wrap: on
line diff
--- a/host/stop_nginx.sh Mon Jan 19 20:37:47 2026 -0800 +++ b/host/stop_nginx.sh Mon Jan 19 20:56:48 2026 -0800 @@ -1,12 +1,10 @@ #!/bin/bash set -e -# currently unused -. nginx_common.sh PIDS=$( - ps -eo pid,comm,args | - awk '/nginx: master process/ {print $1}' + ps -eo pid,args | + awk '/[n]ginx: master process/ {print $1}' ) if [ -n "$PIDS" ]; then
