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