Mercurial > logstash
diff logstash.rc @ 3:796ac0b50dbf
add cron.daily index cleaning
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 07 Mar 2013 10:41:01 -0800 |
parents | df4952a2fb06 |
children | 29ffaf4e0a7f |
line wrap: on
line diff
--- a/logstash.rc Fri Mar 01 18:54:53 2013 -0800 +++ b/logstash.rc Thu Mar 07 10:41:01 2013 -0800 @@ -29,7 +29,7 @@ CONFIGFILE=/etc/logstash/logstash.conf LOGFILE=/var/log/logstash/logstash.log JARNAME=/usr/local/bin/logstash.jar -ARGS="-jar ${JARNAME} agent -vvv --config ${CONFIGFILE} --log ${LOGFILE} -- web --backend elasticsearch://127.0.0.1/?local" +ARGS="-jar ${JARNAME} agent --config ${CONFIGFILE} --log ${LOGFILE} -- web --backend elasticsearch://127.0.0.1/?local" SCRIPTNAME=/etc/rc.d/init.d/logstash PIDFILE=/var/run/logstash.pid base=logstash @@ -50,6 +50,11 @@ 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" + # might try + #id + #exec sudo -u transmission /bin/sh - << eof + #id + #eof } @@ -84,6 +89,7 @@ [ -n "$pid" ] && pkill -HUP -u logstash -P $pid ;; status) + echo -n "$base " status -p $PIDFILE ;; *)