fix(kernel): handle SIGTERM graceful shutdown
This commit is contained in:
@@ -38,6 +38,9 @@ WIKI.kernel.init()
|
||||
// Register exit handler
|
||||
// ----------------------------------------
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
WIKI.kernel.shutdown()
|
||||
})
|
||||
process.on('SIGINT', () => {
|
||||
WIKI.kernel.shutdown()
|
||||
})
|
||||
|
Reference in New Issue
Block a user