aboutsummaryrefslogtreecommitdiffstats
path: root/policy-management/src/main/server-gen/bin/policy-management-controller
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-03-04 16:11:12 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-04 16:11:12 +0000
commitc10a9c1fea3a7c05eb4b4aaf2264855222f1945b (patch)
tree509d91a93094d68fc5f394dd539de5026a15bfe7 /policy-management/src/main/server-gen/bin/policy-management-controller
parent5ac447f758d9b7a7baaf0e24a0e8621a15b8c5ff (diff)
parentb001c1ac5a0b4d938a69adb47f4613f64dc71c1a (diff)
Merge "move all hard install config to environment vars"
Diffstat (limited to 'policy-management/src/main/server-gen/bin/policy-management-controller')
-rw-r--r--policy-management/src/main/server-gen/bin/policy-management-controller5
1 files changed, 3 insertions, 2 deletions
diff --git a/policy-management/src/main/server-gen/bin/policy-management-controller b/policy-management/src/main/server-gen/bin/policy-management-controller
index 589c4c32..79fab581 100644
--- a/policy-management/src/main/server-gen/bin/policy-management-controller
+++ b/policy-management/src/main/server-gen/bin/policy-management-controller
@@ -53,8 +53,9 @@ function um_start() {
source ${POLICY_HOME}/etc/profile.d/env.sh
${POLICY_HOME}/bin/configure-maven
+ JVM_OPTS=(${JVM_OPTIONS})
- # If 'system.properties' exists, convert it into JVM arguments.
+ # If 'system.properties' exists, convert it into "-D" JVM arguments.
# Note that the following also handles property values with spaces.
IFS=$'\n'
systemProperties=($(
@@ -71,7 +72,7 @@ function um_start() {
# to subprocesses
exec {cfg}>&-
fi
- nohup $JAVA_HOME/bin/java -cp $_DIR/config:$_DIR/lib:$CP "${systemProperties[@]}" "$@" $CLASS > >( while read line; do echo "$(date): ${line}"; done > $_LOGS/$PNAME.out) 2> >( while read line; do echo "$(date): ${line}"; done > $_LOGS/$PNAME.err) &
+ nohup $JAVA_HOME/bin/java "${JVM_OPTS[@]}" -cp $_DIR/config:$_DIR/lib:$CP "${systemProperties[@]}" "$@" $CLASS > >( while read line; do echo "$(date): ${line}"; done > $_LOGS/$PNAME.out) 2> >( while read line; do echo "$(date): ${line}"; done > $_LOGS/$PNAME.err) &
_PID=$!
echo $_PID > $_PIDFILE