sync: update from private repo (402599f)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-04 13:41:33 +00:00
parent 57685d995c
commit c526adddc2
28 changed files with 2092 additions and 2727 deletions
+11
View File
@@ -32,6 +32,17 @@ do_start() {
return 0
fi
# Surface stray maestro processes the pidfile doesn't track (e.g. an orphaned
# run on another port/mode that a previous restart never stopped). The
# app-level worker lock (src/instance-lock.ts) will refuse to double-start
# worker mode against the same DB, but warn here so the operator notices.
local strays
strays=$(pgrep -f "node dist/main.js" 2>/dev/null | grep -vx "$$" || true)
if [[ -n "$strays" ]]; then
echo "WARNING: other 'node dist/main.js' process(es) detected (PID: $(echo "$strays" | tr '\n' ' '))."
echo " If a previous run was not stopped cleanly, stop it first to avoid port/DB conflicts."
fi
mkdir -p "$(dirname "$LOG_FILE")"
echo "Checking runtime dependencies..."