22fe11840b
sysctl was improperly set in the contaienr itself which is not correct TrivialFix Change-Id: If2ffca6d2a40e86db4af2f103a27b280bc5fa2ff
15 lines
417 B
Bash
15 lines
417 B
Bash
#!/bin/bash
|
|
|
|
# We are intentionally not using exec so we can reload the haproxy config later
|
|
echo "Running command: '${CMD}'"
|
|
$CMD
|
|
|
|
# TODO(SamYaple): This has the potential for a race condition triggered by a
|
|
# config reload that could cause the container to exit
|
|
while [[ -e "/proc/$(cat /run/haproxy.pid)" ]]; do
|
|
sleep 5
|
|
done
|
|
|
|
# Based on the above loop this point should never be reached
|
|
exit 1
|