system-config/modules/logstash/files/logstash-indexer.conf
Clark Boylan 1986685e29 Fix logstash indexer upstart conf.
A line which should've been a comment in the upstart config for
logstash-indexers lost its '#' make it not a comment and a syntax error.
Make this line a comment again.

Change-Id: Idc4853db68a3ae25bea6ebee80f047cc087457ac
2014-02-27 11:06:52 -08:00

28 lines
652 B
Plaintext

# logstash - indexer instance
#
# Adapted from http://cookbook.logstash.net/recipes/using-upstart/
description "logstash indexer instance"
start on virtual-filesystems
stop on runlevel [06]
# Respawn it if the process exits
respawn
respawn limit 5 30
# You need to chdir somewhere writable because logstash needs to unpack a few
# temporary files on startup.
chdir /opt/logstash
setuid logstash
script
JAVA_ARGS=''
if [ -f /etc/default/logstash-indexer ] ;
then
. /etc/default/logstash-indexer
fi
exec /usr/bin/java $JAVA_ARGS -jar logstash.jar agent -f /etc/logstash/indexer.conf --log /var/log/logstash/indexer.log
end script