diff --git a/server/index.js b/server/index.js index 87eff16b..96f5e4a6 100644 --- a/server/index.js +++ b/server/index.js @@ -38,6 +38,9 @@ WIKI.kernel.init() // Register exit handler // ---------------------------------------- +process.on('SIGTERM', () => { + WIKI.kernel.shutdown() +}) process.on('SIGINT', () => { WIKI.kernel.shutdown() })