Repository: stratos Updated Branches: refs/heads/master 7d4abd0bc -> 5c636606a
Clean script kills all Java processes. This fix allows the clean script to filter the java processes by Carbon start string and ActiveMQ string Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/5c636606 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/5c636606 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/5c636606 Branch: refs/heads/master Commit: 5c636606a10179491848134fd84326d483b16089 Parents: 7d4abd0 Author: Chamila de Alwis <[email protected]> Authored: Wed Oct 15 20:07:16 2014 +0530 Committer: Chamila de Alwis <[email protected]> Committed: Wed Oct 15 20:07:16 2014 +0530 ---------------------------------------------------------------------- tools/stratos-installer/clean.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/5c636606/tools/stratos-installer/clean.sh ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/clean.sh b/tools/stratos-installer/clean.sh index b74879d..e405c9d 100755 --- a/tools/stratos-installer/clean.sh +++ b/tools/stratos-installer/clean.sh @@ -80,8 +80,23 @@ if [[ ( -n $mysql_user && -n $mysql_pass ) ]]; then exit 1 fi fi -echo 'Stopping all java processes' -killall java +echo 'Stopping Carbon java processes' +jps -mlV + +#killing carbon processes +for pid in $(ps aux | grep "[o]rg.wso2.carbon.bootstrap.Bootstrap" | awk '{print $2}') +do + echo "killing Carbon process $pid" + kill $pid +done + +#killing activemq +for pid in $(ps aux | grep "[a]pache-activemq" | awk '{print $2}') +do + echo "killing ActiveMQ $pid" + kill $pid +done + echo 'Waiting for applications to exit' sleep 15
