PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
lib
/** * Copyright 2013 the PM2 project authors. All rights reserved. * Use of this source code is governed by a license that * can be found in the LICENSE file. */ var Utility = require('./Utility.js'); module.exports = function(God) { God.notify = function(action_name, data, manually) { God.bus.emit('process:event', { event : action_name, manually : typeof(manually) == 'undefined' ? false : true, process : Utility.formatCLU(data), at : Utility.getDate() }); }; God.notifyByProcessId = function(opts, cb) { if (typeof(opts.id) === 'undefined') { return cb(new Error('process id missing')); } var proc = God.clusters_db[opts.id]; if (!proc) { return cb(new Error('process id doesnt exists')); } God.bus.emit('process:event', { event : opts.action_name, manually : typeof(opts.manually) == 'undefined' ? false : true, process : Utility.formatCLU(proc), at : Utility.getDate() }); process.nextTick(function() { return cb ? cb(null) : false; }); return false; }; };
[-] Worker.js
[edit]
[-] completion.sh
[edit]
[-] God.js
[edit]
[-] ProcessContainer.js
[edit]
[-] completion.js
[edit]
[+]
..
[+]
binaries
[-] API.js
[edit]
[-] ProcessContainerFork.js
[edit]
[-] ProcessUtils.js
[edit]
[-] HttpInterface.js
[edit]
[+]
Sysinfo
[-] VersionCheck.js
[edit]
[-] Watcher.js
[edit]
[+]
tools
[-] Client.js
[edit]
[+]
templates
[-] Daemon.js
[edit]
[-] TreeKill.js
[edit]
[-] Configuration.js
[edit]
[-] ProcessContainerForkLegacy.js
[edit]
[+]
God
[-] motd
[edit]
[-] Event.js
[edit]
[-] Common.js
[edit]
[+]
API
[-] Utility.js
[edit]
[-] ProcessContainerLegacy.js
[edit]