mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 19:37:47 +01:00
handle SIGHUP exit code
This commit is contained in:
parent
3639dcc92a
commit
8c4b488251
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class Server {
|
|||
logger.notice(`Starting Mempool Server${worker ? ' (worker)' : ''}... (${backendInfo.getShortCommitHash()})`);
|
||||
|
||||
// Register cleanup listeners for exit events
|
||||
['exit', 'SIGINT', 'SIGTERM', 'SIGUSR1', 'SIGUSR2', 'uncaughtException', 'unhandledRejection'].forEach(event => {
|
||||
['exit', 'SIGHUP', 'SIGINT', 'SIGTERM', 'SIGUSR1', 'SIGUSR2', 'uncaughtException', 'unhandledRejection'].forEach(event => {
|
||||
process.on(event, () => { this.onExit(event); });
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue