Skip to content

Make /server-down kill steps reliable - #17

Merged
grenkoff merged 1 commit into
mainfrom
feature/server-down-reliable-kill
Jun 16, 2026
Merged

grenkoff merged 1 commit into
mainfrom
feature/server-down-reliable-kill

Conversation

@grenkoff

Copy link
Copy Markdown
Owner

Summary

Fixes /server-down so it reliably stops the API in one shot.

The previous pkill -f "…" || true steps — especially when chained on one line — kept aborting
after the first command (exit 144), leaving the uvicorn API alive on :8000 and requiring a manual
PID kill.

Changes

  • Steps 1 (web) and 2 (API) now use pgrep -f "…" | xargs -r kill 2>/dev/null; true — kills by PID
    deterministically, won't match the wrong process or get interrupted.
  • Added an explicit instruction to run each kill as its own Bash call (no chaining).
  • Updated allowed-tools accordingly (pgrep, kill, xargs).

Docs/tooling only — no application code changes.

@grenkoff
grenkoff merged commit 6ee3de0 into main Jun 16, 2026
3 checks passed
@grenkoff
grenkoff deleted the feature/server-down-reliable-kill branch June 16, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant