fix(kernel): handle SIGTERM graceful shutdown

This commit is contained in:
Nicolas Giard
2022-06-17 17:46:57 -04:00
committed by GitHub
parent 18f9165945
commit 0425b82c83

View File

@@ -38,6 +38,9 @@ WIKI.kernel.init()
// Register exit handler
// ----------------------------------------
process.on('SIGTERM', () => {
WIKI.kernel.shutdown()
})
process.on('SIGINT', () => {
WIKI.kernel.shutdown()
})