Kolla provides production-ready containers and deployment tools for operating OpenStack clouds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
548B

  1. #!/bin/bash
  2. # Assume the service runs on top of Apache when user is root
  3. if [[ "$(whoami)" == 'root' ]]; then
  4. # NOTE(pbourke): httpd will not clean up after itself in some cases which
  5. # results in the container not being able to restart. (bug #1489676, 1557036)
  6. if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
  7. # Loading Apache2 ENV variables
  8. . /etc/apache2/envvars
  9. install -d /var/run/apache2/
  10. rm -rf /var/run/apache2/*
  11. else
  12. rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*
  13. fi
  14. fi