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