Use non 0 exit code in abnormal shutdown

This commit is contained in:
Reto Brunner 2021-12-02 07:55:06 +01:00
parent 212212fe70
commit 96c2d2419b

View File

@ -108,17 +108,17 @@ module.exports = function (options = {}) {
if (!keyPath.length || !fs.existsSync(keyPath)) {
log.error("Path to SSL key is invalid. Stopping server...");
process.exit();
process.exit(1);
}
if (!certPath.length || !fs.existsSync(certPath)) {
log.error("Path to SSL certificate is invalid. Stopping server...");
process.exit();
process.exit(1);
}
if (caPath.length && !fs.existsSync(caPath)) {
log.error("Path to SSL ca bundle is invalid. Stopping server...");
process.exit();
process.exit(1);
}
server = require("https");