update-app.sh: last-resort kill by exact process name (pgrep -x) — the loose -f 'shonar-desktop' pattern still caught invoker shells outside the script's own ppid chain (persistent command daemons whose cmdline quotes the script path)
This commit is contained in:
parent
c948ca7367
commit
028724ff4d
1 changed files with 4 additions and 2 deletions
|
|
@ -44,8 +44,10 @@ _killpat 'com.shonar.desktop.MainKt'
|
||||||
_killpat 'shonar-desktop/bin/shonar-desktop'
|
_killpat 'shonar-desktop/bin/shonar-desktop'
|
||||||
_killpat 'uvicorn shonar.main:app'
|
_killpat 'uvicorn shonar.main:app'
|
||||||
sleep 2
|
sleep 2
|
||||||
# Last resort: anything still holding a SHONAR window.
|
# Last resort: only by exact process name — a loose 'shonar-desktop'
|
||||||
_killpat 'shonar-desktop'
|
# pattern also matches unrelated shells whose command line merely
|
||||||
|
# mentions the app, and those get collateral SIGTERM.
|
||||||
|
for pid in $(pgrep -x 'shonar-desktop' 2>/dev/null); do kill "$pid" 2>/dev/null; done
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
bin="$repo/app/build/compose/binaries/main/app/shonar-desktop/bin/shonar-desktop"
|
bin="$repo/app/build/compose/binaries/main/app/shonar-desktop/bin/shonar-desktop"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue