Commit 8e60a81c authored by Jordan Sissel's avatar Jordan Sissel

Merge pull request #129 from volker-fr/master

Fixed the usage of /etc/default/logstash-forwarder. The previous way did...
parents e814311b fcd555d5
......@@ -21,12 +21,12 @@ DAEMON_ARGS="-config /etc/logstash-forwarder -spool-size 100 -log-to-syslog"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
COMMAND="cd /var/run; exec $DAEMON $DAEMON_ARGS"
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
. /lib/init/vars.sh
. /lib/lsb/init-functions
COMMAND="cd /var/run; exec $DAEMON $DAEMON_ARGS"
do_start() {
# Skip if it's already running
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