From dc9bf2bce5e1fd1fbdeb3291256c1d0d0fc8630b Mon Sep 17 00:00:00 2001 From: Erhan Kesken <ekesken@users.noreply.github.com> Date: Mon, 4 Apr 2016 23:50:01 +0300 Subject: [PATCH] =?UTF-8?q?made=20syslog-socket=20parameter=20configurable?= =?UTF-8?q?=20via=20enviroment=20variable,=20du=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * made syslog-socket parameter configurable via enviroment variable, due to #135 * moved SYSLOG_SOCKET env from Dockerfile to run script, due to #135 --- run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run b/run index 3089c6ac..f9e4eca4 100755 --- a/run +++ b/run @@ -1,6 +1,8 @@ #!/bin/bash set -euo pipefail +SYSLOG_SOCKET=${SYSLOG_SOCKET:-/dev/null} + HAPROXY_SERVICE="/marathon-lb/service/haproxy" mkdir -p $HAPROXY_SERVICE/env @@ -80,7 +82,7 @@ fi while true; do /marathon-lb/marathon_lb.py \ - --syslog-socket /dev/null \ + --syslog-socket $SYSLOG_SOCKET \ --haproxy-config /marathon-lb/haproxy.cfg \ -c "sv reload $HAPROXY_SERVICE" \ $ARGS "$@" &