From 6ac04eba484baee21aad8d5c2479ccf36715cb63 Mon Sep 17 00:00:00 2001 From: sinthuja Date: Tue, 13 Jun 2017 12:56:24 +0530 Subject: [PATCH] Fixing https://github.com/wso2/product-iots/issues/1000. --- modules/distribution/src/core/bin/analytics.sh | 8 ++------ modules/distribution/src/core/bin/broker.sh | 9 ++------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/modules/distribution/src/core/bin/analytics.sh b/modules/distribution/src/core/bin/analytics.sh index 04b66792..6b924b76 100755 --- a/modules/distribution/src/core/bin/analytics.sh +++ b/modules/distribution/src/core/bin/analytics.sh @@ -61,10 +61,6 @@ ANALYTICS_INIT_SCRIPT="$CARBON_HOME/wso2/analytics/bin/wso2server.sh" # If the daemon is not there, then exit. -sh $ANALYTICS_INIT_SCRIPT $* & +$ANALYTICS_INIT_SCRIPT $* +exit; -trap "sh $ANALYTICS_INIT_SCRIPT stop; exit;" INT TERM -while : -do - sleep 60 -done diff --git a/modules/distribution/src/core/bin/broker.sh b/modules/distribution/src/core/bin/broker.sh index ea94ffc4..b3f1a715 100755 --- a/modules/distribution/src/core/bin/broker.sh +++ b/modules/distribution/src/core/bin/broker.sh @@ -61,10 +61,5 @@ BROKER_INIT_SCRIPT="$CARBON_HOME/wso2/broker/bin/wso2server.sh" # If the daemon is not there, then exit. -sh $BROKER_INIT_SCRIPT $* & - -trap "sh $BROKER_INIT_SCRIPT stop; exit;" INT TERM -while : -do - sleep 60 -done +$BROKER_INIT_SCRIPT $* +exit;