Mercurial > logstash
changeset 7:e4ba03940224
fix startup script
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 22 Mar 2013 10:50:16 -0700 |
parents | ccedd213595c |
children | 97712c48f7fe |
files | logstash.rc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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" }