Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
pm2 /
Delete
Unzip
Name
Size
Permission
Date
Action
bin
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
lib
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
node_modules
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
types
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
.gitattributes
62
B
-rw-r--r--
2025-04-08 13:05
.mocharc.js
216
B
-rw-r--r--
2025-04-08 13:05
CHANGELOG.md
100.48
KB
-rw-r--r--
2025-04-08 13:05
CONTRIBUTING.md
2.78
KB
-rw-r--r--
2025-04-08 13:05
GNU-AGPL-3.0.txt
33.71
KB
-rw-r--r--
2025-04-08 13:05
LICENSE
17
B
-rw-r--r--
2025-04-08 13:05
README.md
6.48
KB
-rw-r--r--
2025-04-08 13:05
bun.lock
18.76
KB
-rw-r--r--
2025-04-08 13:05
constants.js
4.98
KB
-rw-r--r--
2025-04-08 13:05
index.js
303
B
-rw-r--r--
2025-04-08 13:05
package.json
4.38
KB
-rw-r--r--
2025-04-08 13:05
paths.js
3.38
KB
-rw-r--r--
2025-04-08 13:05
pm2
220
B
-rwxr-xr-x
2025-04-08 13:05
preinstall.js
689
B
-rw-r--r--
2025-04-08 13:05
run.sh
136
B
-rw-r--r--
2025-04-08 13:05
Save
Rename
/** * 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 debug = require('debug')('pm2:paths'); var p = require('path'); var fs = require('fs') function getDefaultPM2Home() { var PM2_ROOT_PATH; if (process.env.PM2_HOME) PM2_ROOT_PATH = process.env.PM2_HOME; else if (process.env.HOME && !process.env.HOMEPATH) PM2_ROOT_PATH = p.resolve(process.env.HOME, '.pm2'); else if (process.env.HOME || process.env.HOMEPATH) PM2_ROOT_PATH = p.resolve(process.env.HOMEDRIVE, process.env.HOME || process.env.HOMEPATH, '.pm2'); else { console.error('[PM2][Initialization] Environment variable HOME (Linux) or HOMEPATH (Windows) are not set!'); console.error('[PM2][Initialization] Defaulting to /etc/.pm2'); PM2_ROOT_PATH = p.resolve('/etc', '.pm2'); } debug('pm2 home resolved to %s', PM2_ROOT_PATH, process.env.HOME); return PM2_ROOT_PATH; } module.exports = function(PM2_HOME) { var has_node_embedded = false if (fs.existsSync(p.resolve(__dirname, './node')) === true) { has_node_embedded = true } if (!PM2_HOME) { PM2_HOME = getDefaultPM2Home() } var pm2_file_stucture = { PM2_HOME : PM2_HOME, PM2_ROOT_PATH : PM2_HOME, PM2_CONF_FILE : p.resolve(PM2_HOME, 'conf.js'), PM2_MODULE_CONF_FILE : p.resolve(PM2_HOME, 'module_conf.json'), PM2_LOG_FILE_PATH : p.resolve(PM2_HOME, 'pm2.log'), PM2_PID_FILE_PATH : p.resolve(PM2_HOME, 'pm2.pid'), PM2_RELOAD_LOCKFILE : p.resolve(PM2_HOME, 'reload.lock'), DEFAULT_PID_PATH : p.resolve(PM2_HOME, 'pids'), DEFAULT_LOG_PATH : p.resolve(PM2_HOME, 'logs'), DEFAULT_MODULE_PATH : p.resolve(PM2_HOME, 'modules'), PM2_IO_ACCESS_TOKEN : p.resolve(PM2_HOME, 'pm2-io-token'), DUMP_FILE_PATH : p.resolve(PM2_HOME, 'dump.pm2'), DUMP_BACKUP_FILE_PATH : p.resolve(PM2_HOME, 'dump.pm2.bak'), DAEMON_RPC_PORT : p.resolve(PM2_HOME, 'rpc.sock'), DAEMON_PUB_PORT : p.resolve(PM2_HOME, 'pub.sock'), INTERACTOR_RPC_PORT : p.resolve(PM2_HOME, 'interactor.sock'), INTERACTOR_LOG_FILE_PATH : p.resolve(PM2_HOME, 'agent.log'), INTERACTOR_PID_PATH : p.resolve(PM2_HOME, 'agent.pid'), INTERACTION_CONF : p.resolve(PM2_HOME, 'agent.json5'), HAS_NODE_EMBEDDED : has_node_embedded, BUILTIN_NODE_PATH : has_node_embedded === true ? p.resolve(__dirname, './node/bin/node') : null, BUILTIN_NPM_PATH : has_node_embedded === true ? p.resolve(__dirname, './node/bin/npm') : null, }; // allow overide of file paths via environnement var paths = Object.keys(pm2_file_stucture); paths.forEach(function (key) { var envKey = key.indexOf('PM2_') > -1 ? key : 'PM2_' + key; if (process.env[envKey] && key !== 'PM2_HOME' && key !== 'PM2_ROOT_PATH') { pm2_file_stucture[key] = process.env[envKey]; } }); if (process.platform === 'win32' || process.platform === 'win64') { //@todo instead of static unique rpc/pub file custom with PM2_HOME or UID pm2_file_stucture.DAEMON_RPC_PORT = '\\\\.\\pipe\\rpc.sock'; pm2_file_stucture.DAEMON_PUB_PORT = '\\\\.\\pipe\\pub.sock'; pm2_file_stucture.INTERACTOR_RPC_PORT = '\\\\.\\pipe\\interactor.sock'; } return pm2_file_stucture; };