Signal Utility for Satoshi Showdown. This module provides a utility function for setting up signal handlers for graceful shutdown of the Node.js process. It specifically handles SIGTERM and SIGINT signals to ensure that the application shuts down gracefully, including closing database connections and the server.
- Source:
Requires
Methods
(inner) setupShutdownHandlers(server)
Sets up handlers for system signals for graceful shutdown of the server. Registers handlers for SIGTERM and SIGINT signals, ensuring that the application can close database connections and the server itself gracefully.
Parameters:
Name | Type | Description |
---|---|---|
server |
http.Server | https.Server | The HTTP or HTTPS server instance to be shut down. |
- Source: