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 /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
API
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
God
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
binaries
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
templates
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
tools
[ DIR ]
drwxr-xr-x
2025-04-08 13:05
API.js
58.73
KB
-rw-r--r--
2025-04-08 13:05
Client.js
19.97
KB
-rw-r--r--
2025-04-08 13:05
Common.js
25.9
KB
-rw-r--r--
2025-04-08 13:05
Configuration.js
6.4
KB
-rw-r--r--
2025-04-08 13:05
Daemon.js
12.65
KB
-rw-r--r--
2025-04-08 13:05
Event.js
1.1
KB
-rw-r--r--
2025-04-08 13:05
God.js
18.56
KB
-rw-r--r--
2025-04-08 13:05
HttpInterface.js
2.25
KB
-rw-r--r--
2025-04-08 13:05
ProcessContainer.js
8.61
KB
-rw-r--r--
2025-04-08 13:05
ProcessContainerBun.js
10.57
KB
-rw-r--r--
2025-04-08 13:05
ProcessContainerFork.js
1.25
KB
-rw-r--r--
2025-04-08 13:05
ProcessContainerForkBun.js
987
B
-rw-r--r--
2025-04-08 13:05
ProcessUtils.js
1.39
KB
-rw-r--r--
2025-04-08 13:05
TreeKill.js
2.73
KB
-rw-r--r--
2025-04-08 13:05
Utility.js
8.31
KB
-rw-r--r--
2025-04-08 13:05
VersionCheck.js
1022
B
-rw-r--r--
2025-04-08 13:05
Watcher.js
2.91
KB
-rw-r--r--
2025-04-08 13:05
Worker.js
4.86
KB
-rw-r--r--
2025-04-08 13:05
completion.js
6.71
KB
-rw-r--r--
2025-04-08 13:05
completion.sh
1.16
KB
-rw-r--r--
2025-04-08 13:05
motd
1.22
KB
-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 chokidar = require('chokidar'); var util = require('util'); var log = require('debug')('pm2:watch'); module.exports = function ClusterMode(God) { /** * Watch folder for changes and restart * @method watch * @param {Object} pm2_env pm2 app environnement * @return MemberExpression */ God.watch = {}; God.watch._watchers = {}; God.watch.enable = function(pm2_env) { if (God.watch._watchers[pm2_env.pm_id]) { God.watch._watchers[pm2_env.pm_id].close(); God.watch._watchers[pm2_env.pm_id] = null; delete God.watch._watchers[pm2_env.pm_id]; } log('Initial watch ', pm2_env.watch) var watch = pm2_env.watch if(typeof watch == 'boolean' || Array.isArray(watch) && watch.length === 0) watch = pm2_env.pm_cwd; log('Watching %s', watch); var watch_options = { ignored : pm2_env.ignore_watch || /[\/\\]\.|node_modules/, persistent : true, ignoreInitial : true, cwd: pm2_env.pm_cwd }; if (pm2_env.watch_options) { watch_options = Object.assign(watch_options, pm2_env.watch_options); } log('Watch opts', watch_options); var watcher = chokidar.watch(watch, watch_options); console.log('[Watch] Start watching', pm2_env.name); watcher.on('all', function(event, path) { var self = this; if (self.restarting === true) { log('Already restarting, skipping'); return false; } self.restarting = true; console.log('Change detected on path %s for app %s - restarting', path, pm2_env.name); setTimeout(function() { God.restartProcessName(pm2_env.name, function(err, list) { self.restarting = false; if (err) { log('Error while restarting', err); return false; } return log('Process restarted'); }); }, (pm2_env.watch_delay || 0)); return false; }); watcher.on('error', function(e) { console.error(e.stack || e); }); God.watch._watchers[pm2_env.pm_id] = watcher; //return God.watch._watchers[pm2_env.name]; }, /** * Description * @method close * @param {} id * @return */ God.watch.disableAll = function() { var watchers = God.watch._watchers; console.log('[Watch] PM2 is being killed. Watch is disabled to avoid conflicts'); for (var i in watchers) { watchers[i].close && watchers[i].close(); watchers.splice(i, 1); } }, God.watch.disable = function(pm2_env) { var watcher = God.watch._watchers[pm2_env.pm_id] if (watcher) { console.log('[Watch] Stop watching', pm2_env.name); watcher.close(); delete God.watch._watchers[pm2_env.pm_id]; return true; } else { return false; } } };