aboutsummaryrefslogtreecommitdiffstats
path: root/dcae-controller-service-docker/dcae-controller-service-common-docker/dcae-controller-service-common-docker-manager/src/main/server/bin/manager.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dcae-controller-service-docker/dcae-controller-service-common-docker/dcae-controller-service-common-docker-manager/src/main/server/bin/manager.sh')
-rw-r--r--dcae-controller-service-docker/dcae-controller-service-common-docker/dcae-controller-service-common-docker-manager/src/main/server/bin/manager.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/dcae-controller-service-docker/dcae-controller-service-common-docker/dcae-controller-service-common-docker-manager/src/main/server/bin/manager.sh b/dcae-controller-service-docker/dcae-controller-service-common-docker/dcae-controller-service-common-docker-manager/src/main/server/bin/manager.sh
new file mode 100644
index 0000000..b691aa5
--- /dev/null
+++ b/dcae-controller-service-docker/dcae-controller-service-common-docker/dcae-controller-service-common-docker-manager/src/main/server/bin/manager.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+export JAVA_HOME=/opt/app/java/jdk/jdk170
+export GROOVY_HOME=/opt/app/groovy/246
+
+PATH=$JAVA_HOME/bin:$GROOVY_HOME/bin:$PATH
+
+cd $(dirname $(dirname $0))
+
+ROOT=$(pwd)
+CMD=$ROOT/bin/$(echo $(basename $(pwd)) | sed s/dcae-//)-controller
+
+
+mkdir -p logs/
+echo $(date) bin/manager.sh "$@" >> logs/manager.sh.log
+
+CMD1=$1
+shift
+
+case $CMD1 in
+ start|stop|restart|console)
+ if [ -e makefile ]; then
+ make $CMD1
+ exit
+ fi
+ case $CMD1 in
+ start|stop|console)
+ $CMD $CMD1
+ ;;
+ *)
+ $CMD stop
+ $CMD start -Djavax.net.ssl.trustStore=config/docker-mra-certs.jks
+ ;;
+ esac
+ exit
+ ;;
+esac