deploy(deploy): 🚀 Update process tracking scripts and PID files for Godot Engine and tray application runtime management
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
54caf7e89e
commit
5a4af86bef
3 changed files with 10 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
3290165
|
||||
4016409
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3290166
|
||||
4016410
|
||||
|
|
|
|||
9
run
9
run
|
|
@ -154,10 +154,17 @@ cmd_stop() {
|
|||
tray_pid=$(cat "$TRAY_PIDFILE" 2>/dev/null)
|
||||
if [ -n "$tray_pid" ] && kill -0 "$tray_pid" 2>/dev/null; then
|
||||
kill "$tray_pid" 2>/dev/null && echo "Stopped tray (pid $tray_pid)" || true
|
||||
# Wait for GTK cleanup (status notifier deregistration) — up to 3s
|
||||
local waited=0
|
||||
while kill -0 "$tray_pid" 2>/dev/null && [ "$waited" -lt 30 ]; do
|
||||
sleep 0.1
|
||||
waited=$((waited + 1))
|
||||
done
|
||||
kill -0 "$tray_pid" 2>/dev/null && { kill -9 "$tray_pid" 2>/dev/null || true; }
|
||||
fi
|
||||
rm -f "$TRAY_PIDFILE"
|
||||
fi
|
||||
pgrep -f "chobit_tray\\.py" | while read -r cpid; do
|
||||
pgrep -f "(chobit_tray|dev_trays)\\.py" | while read -r cpid; do
|
||||
kill "$cpid" 2>/dev/null
|
||||
done || true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue