diff --git a/files/geard.init b/files/geard.init index 20bcec8..63af366 100755 --- a/files/geard.init +++ b/files/geard.init @@ -25,7 +25,7 @@ USER=logprocessor # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME -DAEMON_ARGS="-p $GEARD_PORT --pidfile $PIDFILE" +DAEMON_ARGS="--listen-address $GEARD_LISTEN_ADDRESS -p $GEARD_PORT --pidfile $PIDFILE" # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh diff --git a/templates/geard.default.erb b/templates/geard.default.erb index 6b144d0..7b4ac4f 100644 --- a/templates/geard.default.erb +++ b/templates/geard.default.erb @@ -3,4 +3,5 @@ export STATSD_HOST=<%= @statsd_host %> export STATSD_PORT=8125 export STATSD_PREFIX="logstash.geard" <% end %> +export GEARD_LISTEN_ADDRESS=:: export GEARD_PORT=<%= @geard_port %>