mirror of
https://github.com/thelounge/thelounge
synced 2024-11-25 21:40:22 +00:00
Merge pull request #4423 from brunnre8/exit
Use non 0 exit code in abnormal shutdown
This commit is contained in:
commit
ecc0b9183e
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue