auto-save 2026-05-15 11:51 (~3)
This commit is contained in:
@@ -27,7 +27,7 @@ start_api() {
|
||||
echo "missing api/.venv/bin/uvicorn" >&2
|
||||
exit 1
|
||||
fi
|
||||
launchctl bootout "$LAUNCHD_DOMAIN" "$API_LABEL" >/dev/null 2>&1 || true
|
||||
launchctl bootout "$LAUNCHD_DOMAIN/$API_LABEL" >/dev/null 2>&1 || true
|
||||
launchctl bootstrap "$LAUNCHD_DOMAIN" "$LAUNCHD_DIR/$API_LABEL.plist"
|
||||
launchctl kickstart -k "$LAUNCHD_DOMAIN/$API_LABEL"
|
||||
echo "api started on 4291 via launchd, log: $LOG_DIR/api.launchd.log"
|
||||
@@ -42,7 +42,7 @@ start_web() {
|
||||
echo "missing pnpm in PATH" >&2
|
||||
exit 1
|
||||
fi
|
||||
launchctl bootout "$LAUNCHD_DOMAIN" "$WEB_LABEL" >/dev/null 2>&1 || true
|
||||
launchctl bootout "$LAUNCHD_DOMAIN/$WEB_LABEL" >/dev/null 2>&1 || true
|
||||
launchctl bootstrap "$LAUNCHD_DOMAIN" "$LAUNCHD_DIR/$WEB_LABEL.plist"
|
||||
launchctl kickstart -k "$LAUNCHD_DOMAIN/$WEB_LABEL"
|
||||
echo "web started on 4290 via launchd, log: $LOG_DIR/web.launchd.log"
|
||||
|
||||
@@ -7,7 +7,7 @@ LAUNCHD_DOMAIN="gui/$(id -u)"
|
||||
|
||||
stop_launchd_label() {
|
||||
local label="$1"
|
||||
if launchctl bootout "$LAUNCHD_DOMAIN" "$label" >/dev/null 2>&1; then
|
||||
if launchctl bootout "$LAUNCHD_DOMAIN/$label" >/dev/null 2>&1; then
|
||||
echo "$label stopped"
|
||||
else
|
||||
echo "$label not loaded"
|
||||
|
||||
Reference in New Issue
Block a user