Comparing version 0.6.11 to 0.6.12
@@ -292,4 +292,10 @@ | ||
list.forEach(function(l) { | ||
Satan.executeRemote('restartProcessId', l.pm2_env.pm_id, function(err, res) { | ||
(function rec(processes) { | ||
var proc = processes[0]; | ||
if (proc == null) { | ||
console.log('\n' + cst.PREFIX_MSG + 'Process restarted...'); | ||
return setTimeout(speedList, 1000); | ||
} | ||
Satan.executeRemote('restartProcessId', proc.pm2_env.pm_id, function(err, res) { | ||
if (err) { | ||
@@ -299,9 +305,7 @@ console.error('Error : ' + err); | ||
} | ||
console.log(cst.PREFIX_MSG + 'Process ' + l.pm2_env.name + ' restarted'); | ||
console.log(cst.PREFIX_MSG + 'Process ' + proc.pm2_env.name + ' restarted'); | ||
processes.shift(); | ||
rec(processes); | ||
}); | ||
}); | ||
setTimeout(function() { | ||
console.log('\n' + cst.PREFIX_MSG + 'Process restarted'); | ||
speedList(); | ||
}, 1000); | ||
})(list); | ||
}); | ||
@@ -308,0 +312,0 @@ }; |
@@ -361,3 +361,3 @@ /** | ||
if(currentWorkerIndex === workerAmount){ | ||
setTimeout(cb, 1000); | ||
setTimeout(cb, 2000); | ||
} | ||
@@ -364,0 +364,0 @@ }); |
@@ -6,3 +6,4 @@ { | ||
".php": "php", | ||
".pl" : "perl" | ||
".pl" : "perl", | ||
".coffee" : "coffee" | ||
} |
{ | ||
"name": "pm2", | ||
"preferGlobal": "true", | ||
"version": "0.6.11", | ||
"version": "0.6.12", | ||
"engines" : { | ||
@@ -6,0 +6,0 @@ "node" : ">=0.8" |
@@ -5,2 +5,13 @@ # ![Monit](https://github.com/unitech/pm2/raw/master/pres/top-logo-wo.png) | ||
## pm2 related product incoming ! | ||
pm2 will always stay open source and we gonna create a product around pm2, a dashboard to monitor everything ! | ||
Help us to know your needs and if we are going on the right way : | ||
- [Pitch + Survey](https://docs.google.com/forms/d/1FuCjIhrGg-ItxInq2nLreoe9GS-gZWJNkNWE0JJajw8/viewform) People who fill the survey will get free license | ||
- [Newsletter](http://signup.pm2.io/) Subscribe to be kept informed | ||
Thanks in advance and we hope that you like pm2 ! | ||
## Tech notes | ||
@@ -7,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
578076
91
2563
425