ИНФРА - NODEDC LAUNCHER: supervise local BFF

This commit is contained in:
DCCONSTRUCTIONS
2026-05-04 22:53:06 +03:00
parent bf32313177
commit 316bb0a1df
3 changed files with 98 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
LABEL="local.nodedc.launcher-bff"
PLIST="$HOME/Library/LaunchAgents/${LABEL}.plist"
USER_ID="$(id -u)"
launchctl bootout "gui/${USER_ID}/${LABEL}" >/dev/null 2>&1 || true
launchctl bootout "gui/${USER_ID}" "${PLIST}" >/dev/null 2>&1 || true
rm -f "${PLIST}"
echo "NODE.DC launcher BFF LaunchAgent removed: ${LABEL}"