Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
events /
node_modules /
pm2 /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
API
[ DIR ]
drwxrwxr-x
God
[ DIR ]
drwxrwxr-x
binaries
[ DIR ]
drwxrwxr-x
templates
[ DIR ]
drwxrwxr-x
tools
[ DIR ]
drwxrwxr-x
API.js
58.73
KB
-rw-rw-r--
Client.js
19.98
KB
-rw-rw-r--
Common.js
25.65
KB
-rw-rw-r--
Configuration.js
6.4
KB
-rw-rw-r--
Daemon.js
12.6
KB
-rw-rw-r--
Event.js
1.1
KB
-rw-rw-r--
God.js
17.56
KB
-rw-rw-r--
HttpInterface.js
2.25
KB
-rw-rw-r--
ProcessContainer.js
8.9
KB
-rw-rw-r--
ProcessContainerFork.js
1.25
KB
-rw-rw-r--
ProcessUtils.js
1.39
KB
-rw-rw-r--
TreeKill.js
2.71
KB
-rw-rw-r--
Utility.js
8.31
KB
-rw-rw-r--
VersionCheck.js
1022
B
-rw-rw-r--
Watcher.js
2.91
KB
-rw-rw-r--
Worker.js
6.09
KB
-rw-rw-r--
completion.js
6.71
KB
-rw-rw-r--
completion.sh
1.16
KB
-rw-rw-r--
motd
1.22
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Watcher.js
/** * 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; } } };
Close