Files
orangecat/scripts/systemd
CatoandClaude Opus 5.5 ad37b55679 fix(ops): orangecat-app restarts after a SIGTERM nobody asked for (#1155)
2026-09-26 01:53:42 UTC a SIGTERM hit every *-app unit on the box at once.
About 20 units restarted in 3s; orangecat stayed down for 3h45m (502 on the
whole site) and nothing paged.

Cause: this unit alone sets SuccessExitStatus=143 SIGTERM (so deploys don't
log as crashes). With Restart=on-failure, that makes any SIGTERM a "success",
so there's no restart and no OnFailure alert. Its comment assumed SIGTERM is
always a requested stop; it isn't.

Restart=always keeps the clean deploy journal (systemd never restarts after an
explicit stop/restart) and restarts after anything else. Already applied on
the box and proven: kill -TERM <main pid> → new PID, NRestarts=1, health 200.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 23:04:45 -07:00
..