diff logstash.rc @ 34:8ed811f9a0bd

update config files for 1.2.1 syntax changes
author Carl Byington <carl@five-ten-sg.com>
date Wed, 25 Sep 2013 15:09:22 -0700
parents 610835fb4209
children
line wrap: on
line diff
--- a/logstash.rc	Mon Sep 23 11:50:21 2013 -0700
+++ b/logstash.rc	Wed Sep 25 15:09:22 2013 -0700
@@ -28,7 +28,7 @@
 CONFIGFILE=/etc/logstash/logstash.conf
 LOGFILE=/var/log/logstash/logstash.log
 JARNAME=/usr/share/java/logstash.jar
-ARGS="$JAVAARGS -jar $JARNAME agent --config $CONFIGFILE --log $LOGFILE $AGENTARGS -- $WEBARGS"
+ARGS="$JAVAARGS -jar $JARNAME agent --config $CONFIGFILE --log $LOGFILE $AGENTARGS"
 PIDFILE=/var/run/logstash.pid
 base=logstash
 
@@ -47,7 +47,7 @@
     cd $HOME
     pid=$(
     exec sudo -u logstash /bin/bash - <<EOF
-        $JAVA $ARGS >&2 &
+        $JAVA $ARGS </dev/null >/dev/null 2>/dev/null &
         echo \$!
 EOF
     )