Subversion Repositories SmartDukaan

Rev

Rev 17399 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17399 Rev 19339
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
PID_PARENT=`ps -ef | grep ProfitMandiSmsBlaster | grep -v grep | awk '{print $2}'`
3
PID_PARENT=`ps -ef | grep ProfitMandiNewSmsBlaster | grep -v grep | awk '{print $2}'`
4
 
4
 
5
if [ -z "$PID_PARENT" ]; then
5
if [ -z "$PID_PARENT" ]; then
6
 
6
 
7
echo "Critical : Process Not Running"
7
echo "Critical : Process Not Running"
8
 
8
 
9
python /root/code/trunk/PyDTR/src/scripts/ProfitMandiSmsBlaster.py >> /tmp/profitMandiSmsBlaster.log 2>&1 &
9
python /root/code/trunk/PyDTR/src/scripts/ProfitMandiNewSmsBlaster.py -M '45.33.50.227' >> /tmp/profitMandiNewSmsBlaster.log 2>&1 &
10
 
10
 
11
echo "Process not running Sms Blaster Process restarted"
11
echo "Process not running Sms Blaster Process restarted"
12
 
12
 
13
echo "Process Restarted"
13
echo "Process Restarted"
14
 
14