fix colors during execution of single process
This commit is contained in:
1 parent
1c732a4658
commit
12720b4c12
1 file changed
+3
-2
@@ -42,8 +42,9 @@ class Foreman::Engine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def execute(name)
|
def execute(name)
|
||||||
error "no such process: #{name}" unless procfile[name]
|
error "no such process: #{name}" unless process = procfile[name]
|
||||||
fork procfile[name]
|
process.color = next_color
|
||||||
|
fork process
|
||||||
|
|
||||||
trap("TERM") { puts "SIGTERM received"; terminate_gracefully }
|
trap("TERM") { puts "SIGTERM received"; terminate_gracefully }
|
||||||
trap("INT") { puts "SIGINT received"; terminate_gracefully }
|
trap("INT") { puts "SIGINT received"; terminate_gracefully }
|
||||||
|
|||||||
Reference in new issue
Block a user