Mercurial Hosting > luan
changeset 2025:677795f0a4e7
fix
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Wed, 29 Oct 2025 21:34:39 -0600 |
| parents | fa8304b060d9 |
| children | 9c10e37c56f6 |
| files | backup/stop.sh host/check_app.sh |
| diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
diff -r fa8304b060d9 -r 677795f0a4e7 backup/stop.sh --- a/backup/stop.sh Wed Oct 29 21:12:53 2025 -0600 +++ b/backup/stop.sh Wed Oct 29 21:34:39 2025 -0600 @@ -1,5 +1,6 @@ #!/bin/bash -LUAN_PIDS=$(ps ax | awk '{if($0~"[s]erver.luan"){print $1}}'); +LUAN_PIDS=$(ps ax | awk '{if($0~"(backup_)?[s]erver.luan"){print $1}}'); +echo $LUAN_PIDS kill -TERM $LUAN_PIDS; exit 0;
diff -r fa8304b060d9 -r 677795f0a4e7 host/check_app.sh --- a/host/check_app.sh Wed Oct 29 21:12:53 2025 -0600 +++ b/host/check_app.sh Wed Oct 29 21:34:39 2025 -0600 @@ -3,7 +3,7 @@ export PATH="$PATH:/usr/local/bin"; function getPids() { - PIDS=$(ps ax | awk '{if($0~"[r]un_host.luan"){print $1}}'); + PIDS=$(ps ax | awk '{if($0~"[r]un(_host)?.luan"){print $1}}'); } function checkStopped() {
