Mercurial Hosting > luan
view host/stop_nginx.sh @ 2140:bc999d5036fb nginx_decoupled
more robust stop_nginx.sh
| author | Violet7 |
|---|---|
| date | Mon, 19 Jan 2026 20:37:47 -0800 |
| parents | 3ca8f933209d |
| children | c62dfd37545f |
line wrap: on
line source
#!/bin/bash set -e # currently unused . nginx_common.sh PIDS=$( ps -eo pid,comm,args | awk '/nginx: master process/ {print $1}' ) if [ -n "$PIDS" ]; then kill -QUIT $PIDS else echo "No nginx master process found, not attempting to stop." fi
