commit | 38ba4080ced1f2314b30e6836a5a29d1c43344d5 | [log] [tgz] |
---|---|---|
author | buyingyi <buyingyi@123451ca-8445-de46-9d55-352943316053> | Thu Oct 18 22:20:21 2012 +0000 |
committer | buyingyi <buyingyi@123451ca-8445-de46-9d55-352943316053> | Thu Oct 18 22:20:21 2012 +0000 |
tree | dc9b2c742cc4b2353cfbbbc7c8548c948d9682e1 | |
parent | 241ac0fb958900bd2c4f54b0f5fc62f7f7bf9ff3 [diff] |
fix stopnc script for the issue Jarod reports git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_staging@2135 123451ca-8445-de46-9d55-352943316053
diff --git a/pregelix-core/src/main/resources/scripts/startCluster.sh b/pregelix-core/src/main/resources/scripts/startCluster.sh index bc1e7c4..a0c2063 100644 --- a/pregelix-core/src/main/resources/scripts/startCluster.sh +++ b/pregelix-core/src/main/resources/scripts/startCluster.sh
@@ -1,3 +1,3 @@ bin/startcc.sh -sleep 10 +sleep 5 bin/startAllNCs.sh
diff --git a/pregelix-core/src/main/resources/scripts/stopCluster.sh b/pregelix-core/src/main/resources/scripts/stopCluster.sh index a8c8a0a..4889934 100644 --- a/pregelix-core/src/main/resources/scripts/stopCluster.sh +++ b/pregelix-core/src/main/resources/scripts/stopCluster.sh
@@ -1,3 +1,3 @@ bin/stopAllNCs.sh -sleep 10 +sleep 2 bin/stopcc.sh
diff --git a/pregelix-core/src/main/resources/scripts/stopnc.sh b/pregelix-core/src/main/resources/scripts/stopnc.sh index f3c47a9..021071a 100644 --- a/pregelix-core/src/main/resources/scripts/stopnc.sh +++ b/pregelix-core/src/main/resources/scripts/stopnc.sh
@@ -3,6 +3,12 @@ #Kill process PID=`ps -ef|grep ${USER}|grep java|grep hyracks|awk '{print $2}'` + +if [ "$PID" == "" ]; then + USERID=`id | sed 's/^uid=//;s/(.*$//'` + PID=`ps -ef|grep ${USERID}|grep java|grep hyracks|awk '{print $2}'` +fi + echo $PID kill -9 $PID @@ -14,4 +20,4 @@ done #Clean up NC temp dir -rm -rf $NCTMP_DIR/* \ No newline at end of file +rm -rf $NCTMP_DIR/*