Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a RedHat sysv init script #196

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix parameter usage -config
  • Loading branch information
dwerder committed Nov 6, 2014
commit 648e552f76330993266d9ad2446b302a28ab8063
6 changes: 3 additions & 3 deletions logstash-forwarder.rpm.init
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SCRIPTNAME=/etc/init.d/$NAME
. /etc/init.d/functions

[ -e /etc/sysconfig/logstash-forwarder ] && . /etc/sysconfig/logstash-forwarder
DAEMON_ARGS="${DAEMON_ARGS:--config /etc/logstash-forwarder.conf -spool-size 100 -log-to-syslog}"
DAEMON_ARGS="${DAEMON_ARGS:-config /etc/logstash-forwarder.conf -spool-size 100 -log-to-syslog}"

start()
{
Expand Down Expand Up @@ -57,7 +57,7 @@ RETVAL=0

case "$1" in
start)
status -p $PIDFILE >/dev/null
status -p $PIDFILE $NAME>/dev/null
RET=$?
if [ $RET -ne 0 ];then
start
Expand All @@ -73,7 +73,7 @@ case "$1" in
[ -f /var/lock/subsys/$NAME ] && restart || :
;;
status)
status -p $PIDFILE
status -p $PIDFILE $NAME
RETVAL=$?
;;
*)
Expand Down