feat(alert): wire idempotent fleet-alert relay into check loop and stop stale chrome scopes

This commit is contained in:
operator
2026-10-05 17:41:04 +00:00
parent 9e833d0c4b
commit 4f4b8768b6
3 changed files with 321 additions and 0 deletions
+3
View File
@@ -163,6 +163,9 @@ sleep 3
rm -f "/home/super/.local/share/chrome-box/profiles/${PROFILE}/home/.config/chromium/SingletonLock" \
"/home/super/.local/share/chrome-box/profiles/${PROFILE}/home/.config/chromium/SingletonSocket" \
"/home/super/.local/share/chrome-box/profiles/${PROFILE}/home/.config/chromium/SingletonCookie" 2>/dev/null || true
for _sc in $(systemctl --user list-units --type=scope --plain --no-legend 2>/dev/null | awk '{print $1}' | grep -E "^netvm-chrome-${PROFILE}-"); do
systemctl --user stop "$_sc" 2>/dev/null || true
done
# Relaunch in its own systemd scope so it survives this oneshot run.
# nohup/setsid do NOT escape: this timer's service uses KillMode=control-group