This commit is contained in:
Barış Soner Uşaklı
2018-10-14 17:52:26 -04:00
parent f95c3e9121
commit 687adea5dd
3 changed files with 12 additions and 46 deletions

View File

@@ -118,19 +118,6 @@ function addProcessHandlers() {
process.on('SIGTERM', shutdown);
process.on('SIGINT', shutdown);
process.on('SIGHUP', restart);
process.on('message', function (message) {
if (typeof message !== 'object') {
return;
}
var meta = require('./meta');
switch (message.action) {
case 'reload':
meta.reload();
break;
}
});
process.on('uncaughtException', function (err) {
winston.error(err);