anchor.diff:    echo "Usage: $0 {start|stop|status|restart}"
     RETVAL=2
   esac
  -exit $RETVAL+exit $RETVAL
  
positive.code: #
  # processname: logstash-forwarder
  # pidfile: /var/run/lumberjack.pid
   
  # source function library
  . /etc/rc.d/init.d/functions
   
  PROG_DIR='/usr/local/bin'
  PROG="$PROG_DIR/logstash-forwarder -spool-size 100 -log-to-syslog"
  NAME='logstash-forwarder'
  CONFIG="/etc/customlogs/logstash-forwarder/$NAME.conf"
  LOCKFILE="/var/lock/subsys/$NAME"
  PIDFILE="/var/run/log-agent.pid"
  OUTPUT_LOGFILE="/var/log/$NAME/output.log"
   
  if [ ! -x $PROG ]
  then
   echo "$NAME: $PROG does not exist. " && failure
   exit 5
  fi
   
  start() {
   status_quiet
   STATUS=$?
  
negative.code:  echo -n "Starting $NAME: "
   OUTPUT_DIR=$(dirname $OUTPUT_LOGFILE)
   [ -d "$OUTPUT_DIR" ] || mkdir "$OUTPUT_DIR"
   nohup "$PROG" -config="$CONFIG" -spool-size 100 >"$OUTPUT_LOGFILE" 2>&1 &
   RETVAL=$?
   PID=$!
   if [ $RETVAL -eq 0 ]
  