HEX
Server: nginx/1.29.3
System: Linux 11979.bigscoots-wpo.com 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: nginx (1068)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_open,proc_close,popen,show_source,cmd# Do not modify this line # 1684243876
Upload Files
File: //proc/1284358/root/bigscoots/wpo_servicechk.sh
#!/bin/bash

ps -ef | grep nginx: |grep -v grep > /dev/null
if [ $? != 0 ]
then
       /etc/init.d/nginx start > /dev/null
fi

ps -ef | grep crond |grep -v grep > /dev/null
if [ $? != 0 ]
then
       service crond start > /dev/null
fi

ps -ef | grep php-fpm |grep -v grep > /dev/null
if [ $? != 0 ]
then
	sleep 10
	ps -ef | grep php-fpm |grep -v grep > /dev/null
		if [ $? != 0 ]
		then	
       	fpmstart > /dev/null
    fi
fi

ps -ef | grep mysql |grep -v grep > /dev/null
if [ $? != 0 ]
then
       /etc/init.d/mysql start > /dev/null 
fi

ps -ef | grep redis |grep -v grep > /dev/null
if [ $? != 0 ]
then
   if [ -f /etc/init.d/redis ]; then
   /etc/init.d/redis start > /dev/null
     else
      systemctl start redis > /dev/null
   fi
fi

ps -ef | grep postfix |grep -v grep > /dev/null
if [ $? != 0 ]
then
   if [ -f /etc/init.d/postfix ]; then
   /etc/init.d/posfix start > /dev/null
     else
      systemctl start postfix > /dev/null
   fi
fi

if [ -f /etc/csf/csf.error ]
then
    rm -f /etc/csf/csf.error
    if ! csf -ra
    then
        bash /bigscoots/general/slack.sh "#wpo-errors" " $(hostname) -  ${serverip}  -  /etc/csf/csf.error was present, removed it, csf failed to restart properly, please check."
    fi
fi