Rev 19339 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bashPID_PARENT=`ps -ef | grep ProfitMandiNewSmsStatusUpdater | grep -v grep | awk '{print $2}'`if [ -z "$PID_PARENT" ]; thenecho "Critical : Process Not Running"python /root/code/trunk/PyDTR/src/scripts/ProfitMandiNewSmsStatusUpdater.py -M '192.168.161.154' >> /tmp/profitMandiNewSmsStatus.log 2>&1 &echo "Process not running Sms Status Update Process restarted"echo "Process Restarted"elseecho "Process Running"fi