HEX
Server: LiteSpeed
System: Linux pro.primaryservers.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: dcurelif (1225)
PHP: 8.2.29
Disabled: symlink,apache_child_terminate,apache_setenv,define_syslog_variables,eval,exec,fp,fput,ftp_exec,highlight_file,inject_code,mysql_pconnect,dl,openlog,passthru,phpAds_remoteInfo,phpAds_XmlRpc,phpAds_xmlrpcDecode,phpAds_xmlrpcEncode,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,syslog,system,xmlrpc_entity_decode,show_source,escapeshellarg,escapeshellcmd
Upload Files
File: //sbin/kill_php_script
#!/bin/bash

KEY=`grep ^disable_kill_orphaned_cron /etc/sysconfig//cloudlinux  | sed 's/disable_kill_orphaned_cron[ ]*=[ ]*//'`

if [ -z "$KEY" -o "$KEY" = 'n' -o "$KEY" = 'N' ]; then
  # LU-539: use "command:4096" in order to get full path (without cutting). 4096 == MAX_PATH (usual maximum path length allowed by linux kernel)
  /bin/ps -Ao"pid,etime,command:4096,ppid" | grep /php | grep -v -E 'jetbackup|sw-engine|mysqld_safe|lsphp|php-fpm|/home/interworx/bin/php' | /bin/grep ' 1$' | awk '{if ($2 >= "10:00" ) print $1}' | /usr/bin/xargs --no-run-if-empty kill -9
fi