fix(kernel): handle SIGTERM graceful shutdown
This commit is contained in:
1 parent
18f9165945
commit
0425b82c83
1 file changed
+3
@@ -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()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user