Unverified Commit 0425b82c authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub

fix(kernel): handle SIGTERM graceful shutdown

parent 18f91659
......@@ -38,6 +38,9 @@ WIKI.kernel.init()
// Register exit handler
// ----------------------------------------
process.on('SIGTERM', () => {
WIKI.kernel.shutdown()
})
process.on('SIGINT', () => {
WIKI.kernel.shutdown()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment