Socket
Socket
Sign inDemoInstall

pm2

Package Overview
Dependencies
Maintainers
1
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2 - npm Package Compare versions

Comparing version 2.10.3 to 2.10.4

24

CHANGELOG.md

@@ -0,1 +1,23 @@

## 2.10.4 ( Thu May 17 2018 14:32:40 GMT+0200 (CEST) )
## Bug Fixes
- #3645 throttle startup
([d529f675](https://github.com/Unitech/pm2/commit/d529f675d0240777cba95442ba35205c370cdb43))
## Chore
- update issue and PR templates to use comments to hide instructions in the frontend
([9e0180ed](https://github.com/Unitech/pm2/commit/9e0180eddab071916144ad7008817bd6aef1c8ce))
## Pull requests merged
- Merge pull request #3664 from DanielRuf/chore/update-issue-pr-templates
([067446f2](https://github.com/Unitech/pm2/commit/067446f2133ba7f761b0ad3c9f3692b167affd8b))
## v2.10.3 ( Fri Apr 27 2018 11:42:16 GMT+0200 (CEST) )

@@ -25,5 +47,5 @@

([067c18e6](https://github.com/Unitech/pm2/commit/067c18e601aca4fac10101a7c23cc4c3525ad776))
## v2.10.1 ( Mon Feb 26 2018 11:38:18 GMT+0100 (CET) )

@@ -30,0 +52,0 @@

23

lib/API/Startup.js

@@ -225,8 +225,17 @@ /**

destination = '/etc/systemd/system/' + service_name + '.service';
commands = [
'systemctl enable ' + service_name,
'systemctl start ' + service_name,
'systemctl daemon-reload',
'systemctl status ' + service_name
];
'systemctl enable ' + service_name
]
try {
fs.readFileSync(cst.PM2_PID_FILE_PATH).toString()
} catch(e) {
commands = [
'systemctl enable ' + service_name,
'systemctl start ' + service_name,
'systemctl daemon-reload',
'systemctl status ' + service_name
]
}
break;

@@ -320,6 +329,6 @@ case 'ubuntu14':

async.forEachLimit(commands, 1, function(command, next) {
Common.printOut(chalk.bold('>>> Executing %s'), command);
Common.printOut(cst.PREFIX_MSG + '[-] Executing: %s...', chalk.bold(command));
shelljs.exec(command, function(code, stdout, stderr) {
if (code === 0) {
Common.printOut(chalk.bold('[DONE] '));
Common.printOut(cst.PREFIX_MSG + chalk.bold('[v] Command successfully executed.'));
return next();

@@ -326,0 +335,0 @@ } else {

@@ -275,2 +275,6 @@ /**

try {
fs.unlinkSync(that.pid_path);
} catch(e) {}
console.log('PM2 successfully stopped');

@@ -287,6 +291,6 @@ setTimeout(function() {

process.on('SIGTERM', that.gracefullExit);
process.on('SIGINT', that.gracefullExit);
process.on('SIGTERM', that.gracefullExit.bind(this));
process.on('SIGINT', that.gracefullExit.bind(this));
process.on('SIGHUP', function() {});
process.on('SIGQUIT', that.gracefullExit);
process.on('SIGQUIT', that.gracefullExit.bind(this));
process.on('SIGUSR2', function() {

@@ -319,2 +323,7 @@ God.reloadLogs({}, function() {});

God.bus.emit('pm2:kill', {
status : 'killed',
msg : 'pm2 has been killed by SIGNAL'
});
console.log('pm2 has been killed by signal, dumping process list before exit...');

@@ -331,3 +340,2 @@

});
return false;
}, function(err) {

@@ -337,4 +345,6 @@ try {

} catch(e) {}
console.log('Exited peacefully');
process.exit(0);
setTimeout(function() {
console.log('Exited peacefully');
process.exit(cst.SUCCESS_EXIT);
}, 2);
});

@@ -341,0 +351,0 @@ });

{
"name": "pm2",
"preferGlobal": true,
"version": "2.10.3",
"version": "2.10.4",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=0.12"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc