diff options
| author | Zuul <zuul@review.openstack.org> | 2018-12-19 18:19:34 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-12-19 18:19:35 +0000 |
| commit | 3285073aff58de5be787ac46f930dcd56417d217 (patch) | |
| tree | f23a530e79ed3a53c48202fc01807df271be34cd /docker/placement/placement-api/extend_start.sh | |
| parent | 67daff24bff12fe3343811bf9e33cd3ea3430f7f (diff) | |
| parent | 2f657085c67302ab54dcb64b335a2f3732ba4de4 (diff) | |
| download | kolla-3285073aff58de5be787ac46f930dcd56417d217.tar.gz kolla-3285073aff58de5be787ac46f930dcd56417d217.zip | |
Merge "Split placement-api from nova"
Diffstat (limited to 'docker/placement/placement-api/extend_start.sh')
| -rw-r--r-- | docker/placement/placement-api/extend_start.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/placement/placement-api/extend_start.sh b/docker/placement/placement-api/extend_start.sh new file mode 100644 index 000000000..a8e9635d1 --- /dev/null +++ b/docker/placement/placement-api/extend_start.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases +# of the KOLLA_BOOTSTRAP variable being set, including empty. +if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then + placement-manage db sync + exit 0 +fi + +# NOTE(pbourke): httpd will not clean up after itself in some cases which +# results in the container not being able to restart. (bug #1489676, 1557036) +if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then + # Loading Apache2 ENV variables + . /etc/apache2/envvars + rm -rf /var/run/apache2/* +else + rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* +fi |
