Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 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/node_modules/tx2/src/ drwxr-xr-x |
Viewing file: Select action/file-type: const Events = require('./events.js') const Actions = require('./actions.js') const Metrics = require('./metrics.js') const Issues = require('./issues.js') const EventEmitter = require('events') const stringify = require('json-stringify-safe') /** * @namespace TX2 * @class TX2 */ class TX2 extends EventEmitter { constructor() { super() Object.assign(this, Events) Object.assign(this, Actions) Object.assign(this, Metrics) Object.assign(this, Issues) var p_interval = setInterval(() => { this.send({ type : 'axm:monitor', data : Metrics.prepareData() }) }, 990) p_interval.unref() } /** * Send JSON to PM2 * @private * @param {object} args */ send(args) { this.emit('data', args) if (!process.send) { var output = args.data delete output.__name return false } try { process.send(JSON.parse(stringify(args))) } catch(e) { console.error('Process disconnected from parent !') console.error(e.stack || e) process.exit(1) } } } module.exports = TX2 |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]-- |