fix(kernel): handle SIGTERM graceful shutdown

pull/5318/merge
Nicolas Giard 2 years ago committed by GitHub
parent 18f9165945
commit 0425b82c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save