Skip to content

Commit

Permalink
correction for sv run to as users; fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
dearing committed Jul 31, 2015
1 parent 2192268 commit 55ca78c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
6 changes: 2 additions & 4 deletions templates/default/sv-elasticsearch-run.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh

cd <%= @options['home_dir'] %>
cd <%= @options['home_dir'] %>
exec 2>&1

chpst -u :<%= @options['user'] %>:<%= @options['group'] %>
exec ./bin/elasticsearch
exec chpst -u <%= @options['user'] %>:<%= @options['group'] %> ./bin/elasticsearch
6 changes: 2 additions & 4 deletions templates/default/sv-kibana-run.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh

cd <%= @options['home_dir'] %>
cd <%= @options['home_dir'] %>
exec 2>&1

chpst -u :<%= @options['user'] %>:<%= @options['group'] %>
exec ./bin/kibana -c <%= @options['config_file'] %>
exec chpst -u <%= @options['user'] %>:<%= @options['group'] %> ./bin/kibana -c <%= @options['config_file'] %>
6 changes: 2 additions & 4 deletions templates/default/sv-logstash-forwarder-run.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh

cd <%= @options['home_dir'] %>
cd <%= @options['home_dir'] %>
exec 2>&1

chpst -u :<%= @options['user'] %>:<%= @options['group'] %>
exec ./logstash-forwarder -config <%= @options['config_file'] %>
exec chpst -u <%= @options['user'] %>:<%= @options['group'] %> ./logstash-forwarder -config <%= @options['config_file'] %>
6 changes: 2 additions & 4 deletions templates/default/sv-logstash-run.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh

cd <%= @options['home_dir'] %>
cd <%= @options['home_dir'] %>
exec 2>&1

chpst -u :<%= @options['user'] %>:<%= @options['group'] %>
exec ./bin/logstash -f <%= @options['config_file'] %>
exec chpst -u <%= @options['user'] %>:<%= @options['group'] %> ./bin/logstash -f <%= @options['config_file'] %>

0 comments on commit 55ca78c

Please sign in to comment.