fix(sigusr): switch master -> worker from SIGUSR1 to SIGUSR2

This commit is contained in:
Alexis Tyler
2020-07-11 14:25:32 +09:30
parent 3a04778e54
commit ac01c3321b

View File

@@ -77,9 +77,9 @@ if (cluster.isMaster) {
});
// Toggle debug logs
process.on('SIGUSR1', () => {
process.on('SIGUSR2', () => {
log.debug('<master> Updating log level.');
currentWorker.send('SIGUSR1');
currentWorker.send('SIGUSR2');
});
// Kill all workers then exit gracefully