Kolla provides production-ready containers and deployment tools for operating OpenStack clouds
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

16 wiersze
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