kolla/docker/nova/nova-placement-api/extend_start.sh
Jeffrey Zhang 4a5f53eea1 Add nova-placement-api container
Change-Id: I30efc20e6d918e08860584c017455e6d5fa91a35
Closes-Bug: #1660987
2017-02-01 14:10:12 +00:00

12 lines
379 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
source /etc/apache2/envvars
rm -rf /var/run/apache2/*
else
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
fi