From 61230ba301b4ff3d7166be520e825a5d72f41fff Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Thu, 14 May 2026 18:59:46 +0200 Subject: [PATCH] Exit with error 1 on uncaught error so sytemd unit can pick it up as a crash and restart --- src/back/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/back/index.ts b/src/back/index.ts index 992ad74..0f3cfef 100644 --- a/src/back/index.ts +++ b/src/back/index.ts @@ -66,7 +66,8 @@ void (async function () { console.error(error); if (SEALIOUS_SANITY) { console.error("EXITING WITH STATUS 1"); - process.exit(1); } + // we need to always exit with an error status so the systemd unit knows to restart + process.exit(1); } })();