Server IP : 144.76.124.212 / Your IP : 216.73.216.94 Web Server : LiteSpeed System : Linux l4cp.vnetindia.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64 User : rakcha ( 1356) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/cpguard/app/crons/ |
Upload File : |
#!/bin/sh if ps -p `cat /opt/cpguard/app/crons/.pid` > /dev/null then echo "Restarting cpguard-agent" else echo "Starting cpguard-agent" fi #cleanup pkill -f cpguard\-agent > /opt/cpguard/logs/worker_output rm -f /dev/shm/Sync_Event*CpgTask* #start worker /opt/cpguard/app/crons/worker.php >> /opt/cpguard/logs/worker_output 2>&1 & sleep 1 if ps -p `cat /opt/cpguard/app/crons/.pid` > /dev/null then echo "Start success PID : " `cat /opt/cpguard/app/crons/.pid` else echo "Start failed!" fi