Subversion Repositories SmartDukaan

Rev

Rev 16481 | Rev 24392 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/bin/bash

PID_PARENT=`ps -ef | grep ProfitMandiNewPushNotificationSender | grep -v grep | awk '{print $2}'`

if [ -z "$PID_PARENT" ]; then

echo "Critical : Process Not Running"

python /root/code/trunk/PyDTR/src/scripts/ProfitMandiNewPushNotificationSender.py -C '500' -M '45.33.50.227'>> /tmp/profitMandiNewNotificationSender.log 2>&1 &

echo "Process not running Push Notification Sender Process restarted"

echo "Process Restarted"

else

echo "Process Running"

fi