diff logstash.rc @ 18:2b887e35b5cd

work on building from source
author Carl Byington <carl@five-ten-sg.com>
date Mon, 15 Apr 2013 19:33:28 -0700
parents aa606d801e02
children 729f36e68da8
line wrap: on
line diff
--- a/logstash.rc	Fri Apr 12 15:05:23 2013 -0700
+++ b/logstash.rc	Mon Apr 15 19:33:28 2013 -0700
@@ -31,7 +31,7 @@
 CONFIGFILE=/etc/logstash/logstash.conf
 LOGFILE=/var/log/logstash/logstash.log
 JARNAME=/usr/local/bin/logstash.jar
-ARGS="-jar $JARNAME agent --config $CONFIGFILE --log $LOGFILE $AGENTARGS -- web $WEBARGS"
+ARGS="$JAVAARGS -jar $JARNAME agent --config $CONFIGFILE --log $LOGFILE $AGENTARGS -- web $WEBARGS"
 PIDFILE=/var/run/logstash.pid
 base=logstash
 
@@ -50,7 +50,7 @@
     cd $HOME
     pid=$(
     exec sudo -u logstash /bin/bash - <<EOF
-        $JAVA $ARGS &
+        $JAVA $ARGS  &
         echo \$!
 EOF
     )