Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/.nvm/versions/node/v18.17.1/lib/node_modules/pm2/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* Copyright 2013-2022 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;
};
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]-- |