Added comment for SIGUSR2

This commit is contained in:
Wyatt Johnson
2017-01-13 16:02:49 -07:00
parent 53a403cddb
commit da0ca97483
+2 -1
View File
@@ -37,7 +37,8 @@ util.onshutdown = (jobs) => {
};
// Attach to the SIGTERM + SIGINT handles to ensure a clean shutdown in the
// event that we have an external event.
// event that we have an external event. SIGUSR2 is called when the app is asked
// to be 'killed', same procedure here.
process.on('SIGTERM', () => util.shutdown());
process.on('SIGINT', () => util.shutdown());
process.once('SIGUSR2', () => util.shutdown());