Mercurial Hosting > luan
view host/stop.sh @ 2117:1e247cd012ee ssltesting
use site_dir/ssl for all ssl related files; raise error() on empty acme-tiny output.
| author | Violet7 |
|---|---|
| date | Tue, 06 Jan 2026 09:01:44 -0800 |
| parents | 1f4c590bf0ae |
| children |
line wrap: on
line source
#!/bin/bash . check_app.sh; #seconds to wait toWait=30; i=0; getPids; if [ "$PIDS" != "" ]; then while [ $i -lt $toWait ]; do kill -TERM $PIDS; sleep 1; getPids; if [ "$PIDS" == "" ]; then break fi; let i=$i+1; done; if [ "$PIDS" != "" ]; then echo "Can't stop app in ${i} seconds"; exit 0; else rm started.lock; echo "App stopped"; fi; else echo "no running app found"; fi; sudo $(which nginx) -s stop -c $(pwd)/local/nginx.conf; exit 0;
