pm2@4.1.2

This commit is contained in:
Unitech 2019-10-15 18:14:37 +02:00
parent fde4129b96
commit b81d00a81a
5 changed files with 23 additions and 15 deletions

View File

@ -1,4 +1,8 @@
## 4.1.2
- fix: temporarily disable system metrics retrieval
## 4.1.1
- fix: #4452 disable network collection metric

View File

@ -336,7 +336,8 @@ Daemon.prototype.gracefullExit = function() {
console.log('pm2 has been killed by signal, dumping process list before exit...');
God.system_infos_proc.kill()
if (God.system_infos !== null)
God.system_infos_proc.kill()
God.dumpProcessList(function() {

View File

@ -73,21 +73,23 @@ God.init = function() {
God.Worker.start()
}, 500)
try {
var sysinfo = require('./Sysinfo/SystemInfo.js')
God.system_infos_proc = new sysinfo()
God.system_infos_proc = null
setInterval(() => {
God.system_infos_proc.query((err, data) => {
God.system_infos = data
})
}, 1000)
// try {
// var sysinfo = require('./Sysinfo/SystemInfo.js')
// God.system_infos_proc = new sysinfo()
God.system_infos_proc.fork()
} catch(e) {
console.log(e)
God.system_infos_proc = null
}
// setInterval(() => {
// God.system_infos_proc.query((err, data) => {
// God.system_infos = data
// })
// }, 1000)
// God.system_infos_proc.fork()
// } catch(e) {
// console.log(e)
// God.system_infos_proc = null
// }
}
God.writeExitSeparator = function(pm2_env, code, signal) {

View File

@ -1,7 +1,7 @@
{
"name": "pm2",
"preferGlobal": true,
"version": "4.1.1",
"version": "4.1.2",
"engines": {
"embed": "12.4.0",
"node": ">=8.0.0"

View File

@ -146,5 +146,6 @@ should 'should app be online' 'online' 2
kill `cat ~/.pm2/pm2.pid`
spec "should have killed pm2"
sleep 2
pgrep "python"
ispec "should python script be killed"