Browse Source

fix(kernel): handle SIGTERM graceful shutdown

pull/5427/head
Nicolas Giard 3 years ago
committed by GitHub
parent
commit
0425b82c83
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. 3
      server/index.js

3
server/index.js

@ -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…
Cancel
Save