(root)/trunk/PyDTR/ProfitMandiSmsStatusProcessStart.sh – Rev 20689
Rev 19339 |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 17399 |
manish.sha |
1 |
#!/bin/bash
|
|
|
2 |
|
| 19339 |
manish.sha |
3 |
PID_PARENT=`ps -ef | grep ProfitMandiNewSmsStatusUpdater | grep -v grep | awk '{print $2}'`
|
| 17399 |
manish.sha |
4 |
|
|
|
5 |
if [ -z "$PID_PARENT" ]; then
|
|
|
6 |
|
|
|
7 |
echo "Critical : Process Not Running"
|
|
|
8 |
|
| 20689 |
kshitij.so |
9 |
python /root/code/trunk/PyDTR/src/scripts/ProfitMandiNewSmsStatusUpdater.py -M '192.168.161.154' >> /tmp/profitMandiNewSmsStatus.log 2>&1 &
|
| 17399 |
manish.sha |
10 |
|
|
|
11 |
echo "Process not running Sms Status Update Process restarted"
|
|
|
12 |
|
|
|
13 |
echo "Process Restarted"
|
|
|
14 |
|
|
|
15 |
else
|
|
|
16 |
|
|
|
17 |
echo "Process Running"
|
|
|
18 |
|
|
|
19 |
fi
|
|
|
20 |
|