Skip to content

Build your personal knowledge base with Trilium Notes

Exit on SIGINT

Slavi Pantaleev86b9f5a8b044
diff --git a/src/www b/src/www
index 4d919657f5..d15d679b28 100755
--- a/src/www
+++ b/src/www
@@ -8,6 +8,11 @@ process.on('unhandledRejection', error => {
require('./services/log').info(error);
});
+process.on('SIGINT', function() {
+ console.log("Caught interrupt signal. Exiting.");
+ process.exit();
+});
+
const { app, sessionParser } = require('./app');
const debug = require('debug')('node:server');
const fs = require('fs');