Use non 0 exit code in abnormal shutdown
This commit is contained in:
parent
212212fe70
commit
96c2d2419b
@ -108,17 +108,17 @@ module.exports = function (options = {}) {
|
|||||||
|
|
||||||
if (!keyPath.length || !fs.existsSync(keyPath)) {
|
if (!keyPath.length || !fs.existsSync(keyPath)) {
|
||||||
log.error("Path to SSL key is invalid. Stopping server...");
|
log.error("Path to SSL key is invalid. Stopping server...");
|
||||||
process.exit();
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!certPath.length || !fs.existsSync(certPath)) {
|
if (!certPath.length || !fs.existsSync(certPath)) {
|
||||||
log.error("Path to SSL certificate is invalid. Stopping server...");
|
log.error("Path to SSL certificate is invalid. Stopping server...");
|
||||||
process.exit();
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (caPath.length && !fs.existsSync(caPath)) {
|
if (caPath.length && !fs.existsSync(caPath)) {
|
||||||
log.error("Path to SSL ca bundle is invalid. Stopping server...");
|
log.error("Path to SSL ca bundle is invalid. Stopping server...");
|
||||||
process.exit();
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
server = require("https");
|
server = require("https");
|
||||||
|
Loading…
Reference in New Issue
Block a user