foreman 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/export/upstart/process.conf.erb +1 -1
- data/lib/foreman.rb +1 -1
- data/lib/foreman/engine.rb +2 -0
- metadata +3 -3
@@ -3,4 +3,4 @@ stop on stopping <%= app %>-<%= process.name %>
|
|
3
3
|
respawn
|
4
4
|
|
5
5
|
chdir <%= engine.directory %>
|
6
|
-
exec su <%= user %> -c
|
6
|
+
exec su - <%= user %> -c 'export PORT=<%= port %>; <%= process.command %> >> <%= log_root %>/<%=process.name%>-<%=num%>.log 2>&1'
|
data/lib/foreman.rb
CHANGED
data/lib/foreman/engine.rb
CHANGED
@@ -97,6 +97,7 @@ private ######################################################################
|
|
97
97
|
rescue PTY::ChildExited, Interrupt
|
98
98
|
info "process exiting", process
|
99
99
|
end
|
100
|
+
Process.waitall
|
100
101
|
end
|
101
102
|
end
|
102
103
|
|
@@ -106,6 +107,7 @@ private ######################################################################
|
|
106
107
|
info "killing #{process.name} in pid #{pid}"
|
107
108
|
Process.kill(signal, pid)
|
108
109
|
end
|
110
|
+
Process.waitall
|
109
111
|
exit 0
|
110
112
|
end
|
111
113
|
|
metadata
CHANGED