773074c68a
According to this line[1], dbsync command needs to be added to the extend_start.sh file of vitrage-api image. [1] https://github.com/openstack/vitrage/blob/master/devstack/plugin.sh#L139 Change-Id: If30dc5c761ef6164b68afe217ee85c167e73d236 Closes-Bug: #1736927
17 lines
448 B
Bash
17 lines
448 B
Bash
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
|
vitrage-dbsync
|
|
exit 0
|
|
fi
|