Commit fcd555d5 authored by Volker Uhrig's avatar Volker Uhrig

Fixed the usage of /etc/default/logstash-forwarder. The previous way did not...

Fixed the usage of /etc/default/logstash-forwarder. The previous way did not overwrite the usage of DAEMON_ARGS
parent e814311b
...@@ -21,12 +21,12 @@ DAEMON_ARGS="-config /etc/logstash-forwarder -spool-size 100 -log-to-syslog" ...@@ -21,12 +21,12 @@ DAEMON_ARGS="-config /etc/logstash-forwarder -spool-size 100 -log-to-syslog"
PIDFILE=/var/run/$NAME.pid PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME SCRIPTNAME=/etc/init.d/$NAME
COMMAND="cd /var/run; exec $DAEMON $DAEMON_ARGS"
[ -r /etc/default/$NAME ] && . /etc/default/$NAME [ -r /etc/default/$NAME ] && . /etc/default/$NAME
. /lib/init/vars.sh . /lib/init/vars.sh
. /lib/lsb/init-functions . /lib/lsb/init-functions
COMMAND="cd /var/run; exec $DAEMON $DAEMON_ARGS"
do_start() { do_start() {
# Skip if it's already running # Skip if it's already running
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /bin/sh --test > /dev/null || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /bin/sh --test > /dev/null || return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment