Skip to content

Commit

Permalink
upgrade systeminformation
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Dec 15, 2020
1 parent f376825 commit 452cc85
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 12 additions & 0 deletions examples/cluster-http/http-no-exit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

var http = require('http');

var server = http.createServer(function(req, res) {
res.writeHead(200);
res.end('hey');
}).listen(process.env.PORT || 8089, '0.0.0.0', function() {
console.log('App listening on port %d', server.address().port);
});

process.on('SIGINT', () => {
})
4 changes: 0 additions & 4 deletions lib/API.js
Original file line number Diff line number Diff line change
@@ -409,9 +409,7 @@ class API {
}

that.dump(function(err) {
debug('Dumping successfull', err);
that.killDaemon(function() {
debug('------------------ Everything killed', arguments);
that.Client.launchDaemon({interactor:false}, function(err, child) {
that.Client.launchRPC(function() {
that.resurrect(function() {
@@ -640,8 +638,6 @@ class API {

that.Client.executeRemote('notifyKillPM2', {}, function() {});

Common.printOut(conf.PREFIX_MSG + '[v] Modules Stopped');

that._operate('deleteProcessId', 'all', function(err, list) {
Common.printOut(conf.PREFIX_MSG + '[v] All Applications Stopped');
process.env.PM2_SILENT = 'false';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -202,7 +202,7 @@
"should": "^13"
},
"optionalDependencies": {
"systeminformation": "^4.27.11"
"systeminformation": "^4.30"
},
"bugs": {
"url": "https://github.com/Unitech/pm2/issues"

0 comments on commit 452cc85

Please sign in to comment.