Merge "Fix "wait for log socket" in start.sh"

This commit is contained in:
Jenkins 2016-03-07 16:15:43 +00:00 committed by Gerrit Code Review
commit 5e547639b3
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,9 @@
kolla_docker: kolla_docker:
action: "start_container" action: "start_container"
common_options: "{{ docker_common_options }}" common_options: "{{ docker_common_options }}"
environment:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
SKIP_LOG_SETUP: "true"
image: "{{ heka_image_full }}" image: "{{ heka_image_full }}"
name: "heka" name: "heka"
volumes: volumes:

View File

@ -3,7 +3,7 @@ set -o errexit
# Wait for the log socket # Wait for the log socket
if [[ ! "${!SKIP_LOG_SETUP[@]}" && -e /var/lib/kolla/heka ]]; then if [[ ! "${!SKIP_LOG_SETUP[@]}" && -e /var/lib/kolla/heka ]]; then
while [[ ! -S /var/lib/kolla/heka/log ]]; do while [[ ! -S /var/lib/kolla/heka/log ]]; do
sleep 1 sleep 1
done done
fi fi