Improve master shutdown

Close active connections and http servers during master shutdown and let
node exit on its own.  If this fails with an error set output streams to
blocking and report it then shutdown with process.exit.

Also add double SIGINT handling to immediately shutdown.
This commit is contained in:
Hornwitser committed 2019-12-20 02:37:27 +01:00
1 parent 8b9bb59357
commit 1f6574a89c
2 files changed
+74 -13

No files matched your search

+1
View File
@@ -59,6 +59,7 @@
"rcon-client": "^4.2.0",
"request": "^2.83.0",
"sanitizer": "^0.1.3",
"set-blocking": "^2.0.0",
"simple-git": "^1.96.0",
"single-line-log": "^1.1.2",
"socket.io": "^2.2.0",