#!/bin/sh

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

exec chpst -u <%= @options['user'] %> <%= @options['home'] %>/bin/logstash <%= @options['args'].join(' ') %>

#!/bin/sh

export HOME=<%= @options['home'] %>
cd $HOME

exec 2>&1

exec chpst -u <%= @options['user'] %> <%= @options['home'] %>/bin/logstash <%= @options['args'].join(' ') %>

Fix logstash HOME required for some plugins
Fix logstash HOME required for some plugins