Commit 23c06f7c authored by Etienne Charlier's avatar Etienne Charlier
Browse files

Fix startup sequence

parent 3f11660e
......@@ -177,7 +177,7 @@ template "/etc/init/#{application_name}.conf" do
:application_name => application_name,
:vm_options => '',
:arguments => "-Dlca.client.config.registry=etcdregistry -Dlca.client.config.registry.etcd.hosts=#{external_ip_address} -Dconfig.file=#{config_dir}/prod.conf -Dpidfile.path=$PID_FILE_DIR/#{node['play_app'][:pid_file_name]} -Dlogger.file=#{config_dir}/logger.xml -DapplyEvolutions.default=true #{node['play_app'][:vm_options]}",
:command => "bin/#{application_name}"
:command => "#{application_name}/bin/#{application_name}"
})
end
......
......@@ -4,11 +4,17 @@ description "<%= @application_name%>"
start on started server
stop on shutdown
pre-start script
mkdir -p "/run/execware"
chown <%= @install_user %> /run/execware
end script
env PAASAGE_CONFIG_DIR=/etc/paasage
env PID_FILE_DIR="/run/execware"
setuid <%= @install_user %>
setgid <%= @install_user %>
console log
chdir <%= @installation_dir %>
exec <%= @installation_dir %>/<%= @command %> <%= @arguments %>
\ No newline at end of file
exec <%= @installation_dir %>/<%= @command %> <%= @arguments %>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment