OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwpos
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
928 bytes
08/21/2025 03:04:58 PM
rw-r--r--
📁
__pycache__
-
09/05/2025 10:05:18 AM
rwxr-xr-x
📄
billing.py
6.24 KB
08/21/2025 03:04:58 PM
rw-r--r--
📁
bin
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📄
cl_wpos_exceptions.py
3.59 KB
08/21/2025 03:04:58 PM
rw-r--r--
📁
cli_versions
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📄
constants.py
5.56 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
create_user_uid_dirs.py
754 bytes
08/21/2025 03:04:58 PM
rw-r--r--
📄
cron.py
2.14 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
daemon.py
37.12 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
daemon_base.py
2.84 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
daemon_config.py
621 bytes
08/21/2025 03:04:58 PM
rw-r--r--
📄
daemon_redis_lib.py
11.93 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
daemon_subscription_handler.py
6.44 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
data_collector_utils.py
9.42 KB
08/21/2025 03:04:58 PM
rw-r--r--
📁
feature_suites
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📁
hooks
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📄
logsetup.py
4.04 KB
08/21/2025 03:04:58 PM
rw-r--r--
📁
migrations
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📁
object_cache
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📁
optimization_features
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📄
papi.py
9.87 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
parse.py
2.1 KB
08/21/2025 03:04:58 PM
rw-r--r--
📁
php
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📄
redis_configuration_pid_file_cleaner.py
1.01 KB
08/21/2025 03:04:58 PM
rwxr-xr-x
📄
report_generator.py
21.18 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
scoped_cache.py
1.34 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
socket_utils.py
4.03 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
stats.py
12.02 KB
08/21/2025 03:04:58 PM
rw-r--r--
📁
user
-
09/05/2025 09:34:13 AM
rwxr-xr-x
📄
utils.py
53.91 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
whmcs_utils.py
9.36 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
wp_config.py
725 bytes
08/21/2025 03:04:58 PM
rw-r--r--
📄
wp_utils.py
16.33 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
wpos_admin.py
67.14 KB
08/21/2025 03:04:58 PM
rw-r--r--
📄
wpos_hooks.py
4.85 KB
08/21/2025 03:04:58 PM
rwxr-xr-x
📄
wpos_req_scanner.py
4.38 KB
08/21/2025 03:04:58 PM
rw-r--r--
Editing: redis_configuration_pid_file_cleaner.py
Close
#!/opt/cloudlinux/venv/bin/python3 -bb # -*- coding: utf-8 -*- # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT import os from clwpos.constants import CLWPOS_OPT_DIR, ALT_PHP_PREFIX, EA_PHP_PREFIX, PLESK_PHP_PREFIX from clwpos.utils import RedisConfigurePidFile, is_php_redis_configuration_running def main(): """ Clean up pid files with non-existent processes in '/opt/clwpos' directory. """ php_prefixes = (ALT_PHP_PREFIX, EA_PHP_PREFIX, PLESK_PHP_PREFIX) clwpos_opt_dir_content = os.listdir(CLWPOS_OPT_DIR) for item in clwpos_opt_dir_content: for prefix in php_prefixes: if item.endswith('.pid') and item.startswith(prefix) and \ not is_php_redis_configuration_running(prefix): pid_file = RedisConfigurePidFile(prefix) pid_file.remove() break if __name__ == '__main__': main()