This problem is quite old, but for those who have not seen it, the latest versions forever support --killSignal (this was added in December 2013), so you can use an example --killSignal=SIGUSR2and catch this signal withprocess.on('SIGUSR2', func)
source
share