mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-06 00:07:58 +01:00
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>