2017-02-01 22:01:34 +08:00
|
|
|
#!/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
|
2017-08-28 11:01:24 +05:30
|
|
|
. /etc/apache2/envvars
|
2017-02-01 22:01:34 +08:00
|
|
|
rm -rf /var/run/apache2/*
|
|
|
|
else
|
|
|
|
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
|
|
|
|
fi
|