Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.141.36.190
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/cwd/proc/3/task/3/cwd/proc/2/task/2/cwd/lib/node_modules/pm2/lib/API/UX/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/cwd/proc/3/task/3/cwd/proc/2/task/2/cwd/lib/node_modules/pm2/lib/API/UX/pm2-ls-minimal.js
const UxHelpers = require('./helpers.js')
const p = require('path')

/**
 * Minimal display via pm2 ls -m
 * @method miniDisplay
 * @param {Object} list process list
 */
module.exports = function(list) {
  list.forEach(function(l) {

    var mode = l.pm2_env.exec_mode.split('_mode')[0]
    var status = l.pm2_env.status
    var key = l.pm2_env.name || p.basename(l.pm2_env.pm_exec_path.script)

    console.log('+--- %s', key)
    console.log('namespace : %s', l.pm2_env.namespace)
    console.log('version : %s', l.pm2_env.version)
    console.log('pid : %s', l.pid)
    console.log('pm2 id : %s', l.pm2_env.pm_id)
    console.log('status : %s', status)
    console.log('mode : %s', mode)
    console.log('restarted : %d', l.pm2_env.restart_time ? l.pm2_env.restart_time : 0)
    console.log('uptime : %s', (l.pm2_env.pm_uptime && status == 'online') ? UxHelpers.timeSince(l.pm2_env.pm_uptime) : 0)
    console.log('memory usage : %s', l.monit ? UxHelpers.bytesToSize(l.monit.memory, 1) : '')
    console.log('error log : %s', l.pm2_env.pm_err_log_path)
    console.log('watching : %s', l.pm2_env.watch ? 'yes' : 'no')
    console.log('PID file : %s\n', l.pm2_env.pm_pid_path)
  })
}

Anon7 - 2022
AnonSec Team