recipiez 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/recipiez/version.rb +1 -1
- data/recipes/templates/upstart_go.erb +2 -1
- metadata +2 -2
data/lib/recipiez/version.rb
CHANGED
@@ -9,10 +9,11 @@ stop on shutdown
|
|
9
9
|
respawn # restart when job dies
|
10
10
|
respawn limit 5 60 # give up restart after 5 respawns in 60 seconds
|
11
11
|
|
12
|
+
chdir <%= current_path %>
|
12
13
|
script
|
13
14
|
ulimit -n 100000
|
14
15
|
echo $$ > /var/run/<%= application %>.pid
|
15
|
-
exec sudo -u <%= user %>
|
16
|
+
exec sudo -u <%= user %> <%= current_path %>/<%= application %> -go_port=<%= go_port %> -go_env=<%= go_env %> >> <%= current_path %>/log/<%= go_env %>.log 2>&1
|
16
17
|
end script
|
17
18
|
|
18
19
|
|