Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #376 from jrstarke/master
Browse files Browse the repository at this point in the history
Added run settings based on tarball for agent config
  • Loading branch information
paulczar committed Nov 29, 2014
2 parents 3d76326 + 197453a commit 2e01144
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions templates/default/sv-logstash_agent-run.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ LOGSTASH_OPTS="$LOGSTASH_OPTS -vv"
<% end -%>
LOGSTASH_OPTS="$LOGSTASH_OPTS -l $LOGSTASH_HOME/log/<%= @options[:log_file] %>"
export LOGSTASH_OPTS="$LOGSTASH_OPTS -w <%= @options[:workers] %>"
<% if @options[:supervisor_gid] -%>
HOME=$LOGSTASH_HOME exec chpst -u <%= @options[:user] %>:<%= @options[:supervisor_gid] %> java $JAVA_OPTS $GC_OPTS -jar $LOGSTASH_HOME/lib/logstash.jar $LOGSTASH_OPTS
<% if @options[:install_type] == 'tarball' -%>
<% if @options[:supervisor_gid] -%>
HOME=$LOGSTASH_HOME exec chpst -u <%= @options[:user] %>:<%= @options[:supervisor_gid] %> $LOGSTASH_HOME/bin/logstash $LOGSTASH_OPTS
<% else -%>
HOME=$LOGSTASH_HOME exec chpst -u <%= @options[:user] %> $LOGSTASH_HOME/bin/logstash $LOGSTASH_OPTS
<% end -%>
<% else -%>
<% if @options[:supervisor_gid] -%>
HOME=$LOGSTASH_HOME exec chpst -u <%= @options[:user] %>:<%= @options[:supervisor_gid] %> java $JAVA_OPTS $GC_OPTS -jar $LOGSTASH_HOME/lib/logstash.jar $LOGSTASH_OPTS
<% else -%>
HOME=$LOGSTASH_HOME exec chpst -u <%= @options[:user] %> java $JAVA_OPTS $GC_OPTS -jar $LOGSTASH_HOME/lib/logstash.jar $LOGSTASH_OPTS
<% end -%>
<% end -%>

0 comments on commit 2e01144

Please sign in to comment.