Exit with error 1 on uncaught error so sytemd unit can pick it up as a crash and restart
This commit is contained in:
parent
da327a633b
commit
61230ba301
@ -66,7 +66,8 @@ void (async function () {
|
||||
console.error(error);
|
||||
if (SEALIOUS_SANITY) {
|
||||
console.error("EXITING WITH STATUS 1");
|
||||
}
|
||||
// we need to always exit with an error status so the systemd unit knows to restart
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user