ramangrover29 | 3b22171 | 2013-08-01 11:16:42 -0700 | [diff] [blame] | 1 | echo `hostname` |
2 | #Kill process | ||||
3 | PID=`ps -ef|grep ${USER}|grep java|grep 'Dapp.name=pregelixnc'|awk '{print $2}'` | ||||
4 | |||||
5 | if [ "$PID" == "" ]; then | ||||
6 | PID=`ps -ef|grep ${USER}|grep java|grep 'hyracks'|awk '{print $2}'` | ||||
7 | fi | ||||
8 | |||||
9 | if [ "$PID" == "" ]; then | ||||
10 | USERID=`id | sed 's/^uid=//;s/(.*$//'` | ||||
11 | PID=`ps -ef|grep ${USERID}|grep java|grep 'Dapp.name=pregelixnc'|awk '{print $2}'` | ||||
12 | fi | ||||
13 | |||||
14 | echo $PID | ||||
15 | kill -QUIT $PID |