Exit with error 1 on uncaught error so sytemd unit can pick it up as a crash and restart

This commit is contained in:
Kuba Orlik 2026-05-14 18:59:46 +02:00
parent da327a633b
commit 61230ba301

View File

@ -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);
}
})();