diff options
author | dglFromAtt <dgl@research.att.com> | 2018-10-18 17:53:25 +0000 |
---|---|---|
committer | dglFromAtt <dgl@research.att.com> | 2018-10-18 17:53:46 +0000 |
commit | dcdbc9cdee08edc603297806584fa5dc3b84b64f (patch) | |
tree | c8814f56d61c911ca9699854795695515c7100e4 /misc | |
parent | 31b09346679c636b0f54a99381b602e47bdefd84 (diff) |
Correction to CONFIGMAP_ROOT
Change-Id: I728d75fa0c5e88e660396b7521faaeb8b4c18975
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-548
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dmaapbc | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/misc/dmaapbc b/misc/dmaapbc index c36c5d5..ab30d73 100644 --- a/misc/dmaapbc +++ b/misc/dmaapbc @@ -31,20 +31,22 @@ PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/jdk/ export PATH CLASSPATH=`echo $APP_ROOT/etc $APP_ROOT/lib/*.jar | tr ' ' ':'` export CLASSPATH -CONFIGMAP_ROOT=${CONFIGMAP_ROOT:-/opt/app/config/conf} -CONFIGMAP_PROPS=${CONFIGMAP_PROPS:-/opt/app/config/conf/dmaapbc.properties} -CONTAINER_CONFIG=$CONFIGMAP_ROOT/buscontroller.env +CONFIGMAP_ROOT=${CONFIGMAP_ROOT:-/opt/app/config} +CONFIGMAP_PROPS=${CONFIGMAP_PROPS:-$CONFIGMAP_ROOT/conf/dmaapbc.properties} +CONTAINER_CONFIG=$CONFIGMAP_ROOT/conf/buscontroller.env MAIN=org.onap.dmaap.dbcapi.server.Main pids() { + echo "ENTER pids" set -x ps -ef | grep java | grep $MAIN | sed -e 's/[^ ]* *//' -e 's/ .*//' set +x } config() { + echo "ENTER config" set -x if [ ! -d $APP_ROOT ] then @@ -93,6 +95,7 @@ config() { } start() { + echo "ENTER start" set -x ID=`id -n -u` GRP=`id -n -g` @@ -107,6 +110,7 @@ start() { exit 1 fi cd $APP_ROOT + pwd if etc/havecert then @@ -134,6 +138,7 @@ start() { } stop() { + echo "ENTER stop" ID=`id -n -u` GRP=`id -n -g` if [ "$ID" != "$USER" ] @@ -160,6 +165,7 @@ stop() { } status() { + echo "ENTER status" PIDS=`pids` if [ "$PIDS" != "" ] then @@ -170,6 +176,7 @@ status() { } init() { + echo "ENTER init" if [ ! -d $CONFIGMAP_ROOT ] then echo $CONFIGMAP_ROOT does not exist @@ -186,6 +193,7 @@ init() { done cd $CONFIGMAP_ROOT + pwd # order is important in this next list for uri in dmaap dcaeLocations mr_clusters topics feeds do @@ -193,7 +201,9 @@ init() { then for j in `ls ${uri}/*.json` do - curl -v -X POST -H "Content-Type: application/json" -d @${j} http://dmaap-bc:8080/webapi/${uri} + echo "POST $j to $uri" + rc=`curl -v -X POST -w "%{http_code}" -H "Content-Type: application/json" -d @${j} http://dmaap-bc:8080/webapi/${uri}` + echo "response=$rc" done fi done |