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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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