add SIGTERM handler

This commit is contained in:
Dave Horton
2021-12-13 18:08:53 -05:00
parent fbe2aa2c06
commit f642967f02

1
app.js
View File

@@ -106,6 +106,7 @@ const disconnect = () => {
};
process.on('SIGUSR2', handle);
process.on('SIGTERM', handle);
function handle(signal) {
const {removeFromSet} = srf.locals.dbHelpers;