aboutsummaryrefslogtreecommitdiff
path: root/docker_templates/nova/nova-scheduler
diff options
context:
space:
mode:
Diffstat (limited to 'docker_templates/nova/nova-scheduler')
-rwxr-xr-x[l---------]docker_templates/nova/nova-scheduler/config-external.sh11
-rwxr-xr-x[l---------]docker_templates/nova/nova-scheduler/start.sh14
2 files changed, 23 insertions, 2 deletions
diff --git a/docker_templates/nova/nova-scheduler/config-external.sh b/docker_templates/nova/nova-scheduler/config-external.sh
index 4021bbbda..3df0f9b7b 120000..100755
--- a/docker_templates/nova/nova-scheduler/config-external.sh
+++ b/docker_templates/nova/nova-scheduler/config-external.sh
@@ -1 +1,10 @@
-../../../docker/common/nova/nova-scheduler/config-external.sh \ No newline at end of file
+#!/bin/bash
+SOURCE="/opt/kolla/nova-scheduler/nova.conf"
+TARGET="/etc/nova/nova.conf"
+OWNER="nova"
+
+if [[ -f "$SOURCE" ]]; then
+ cp $SOURCE $TARGET
+ chown ${OWNER}: $TARGET
+ chmod 0644 $TARGET
+fi
diff --git a/docker_templates/nova/nova-scheduler/start.sh b/docker_templates/nova/nova-scheduler/start.sh
index cd2206191..d9b3e14eb 120000..100755
--- a/docker_templates/nova/nova-scheduler/start.sh
+++ b/docker_templates/nova/nova-scheduler/start.sh
@@ -1 +1,13 @@
-../../../docker/common/nova/nova-scheduler/start.sh \ No newline at end of file
+#!/bin/bash
+set -o errexit
+
+CMD="/usr/bin/nova-scheduler"
+ARGS=""
+
+# Loading common functions.
+source /opt/kolla/kolla-common.sh
+
+# Execute config strategy
+set_configs
+
+exec $CMD $ARGS