chore(run-named): 🔧 Update run-named script with new/modified commands and configurations
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
fa0b3767f3
commit
86bc6a7d1f
1 changed files with 7 additions and 1 deletions
8
run
8
run
|
|
@ -148,6 +148,12 @@ cmd_dev() {
|
|||
}
|
||||
|
||||
cmd_stop() {
|
||||
# Kill vision first — camera must be released before tray gets a chance to respawn it.
|
||||
# Vision ignores SIGTERM (cap.read() blocks the asyncio loop), so SIGKILL is required.
|
||||
pgrep -f "chobit_vision\\.py" | while read -r cpid; do
|
||||
kill -9 "$cpid" 2>/dev/null
|
||||
done || true
|
||||
|
||||
# Stop tray
|
||||
if [ -f "$TRAY_PIDFILE" ]; then
|
||||
local tray_pid
|
||||
|
|
@ -168,7 +174,7 @@ cmd_stop() {
|
|||
kill "$cpid" 2>/dev/null
|
||||
done || true
|
||||
pgrep -f "chobit_vision\\.py" | while read -r cpid; do
|
||||
kill "$cpid" 2>/dev/null
|
||||
kill -9 "$cpid" 2>/dev/null
|
||||
done || true
|
||||
|
||||
# Stop Godot
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue