diff logstash.rc @ 7:e4ba03940224

fix startup script
author Carl Byington <carl@five-ten-sg.com>
date Fri, 22 Mar 2013 10:50:16 -0700
parents 6b7beb807d14
children 4899fb1b3eb3
line wrap: on
line diff
--- a/logstash.rc	Fri Mar 22 10:37:02 2013 -0700
+++ b/logstash.rc	Fri Mar 22 10:50:16 2013 -0700
@@ -49,11 +49,10 @@
     cd $HOME
     pid=$(
     exec sudo -u logstash /bin/bash - <<EOF
-        $JAVA $ARGS
+        $JAVA $ARGS &
         echo \$!
 EOF
     )
-    #pid=$(su logstash -c 'echo -e "'"$JAVA $ARGS"' </dev/null >'"$LOGFILE"' 2>&1 & \n echo \$!" | bash')
     echo $pid >$PIDFILE
     [ -n "$pid" ] && success $"$base startup" || failure $"$base startup"
 }