Rev 19339 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bashPID_PARENT=`ps -ef | grep ProfitMandiPushNotificationSender | grep -v grep | awk '{print $2}'`if [ -z "$PID_PARENT" ]; thenecho "Critical : Process Not Running"python /root/code/trunk/PyDTR/src/scripts/ProfitMandiPushNotificationSender.py -C 500>> /tmp/profitMandiNotificationSender.log 2>&1 &echo "Process not running Push Notification Sender Process restarted" | /usr/sbin/sendmail -s "Push Notification Sender Process Restarted" "anikendra.das@saholic.com"echo "Process Restarted"elseecho "Process Running"fi