Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
made syslog-socket parameter configurable via enviroment variable, du…
Browse files Browse the repository at this point in the history
* made syslog-socket parameter configurable via enviroment variable, due to #135

* moved SYSLOG_SOCKET env from Dockerfile to run script, due to #135
  • Loading branch information
ekesken authored and brndnmtthws committed Apr 4, 2016
1 parent 4ea943d commit dc9bf2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 "$@" &
Expand Down

0 comments on commit dc9bf2b

Please sign in to comment.