lib/foreman/engine.rb in foreman-0.14.0 vs lib/foreman/engine.rb in foreman-0.15.0
- old
+ new
@@ -55,19 +55,19 @@
processes_in_order.each do |name, process|
fork process, options
end
trap("TERM") { puts "SIGTERM received"; kill_all("TERM") }
- trap("INT") { puts "SIGINT received"; kill_all("INT") }
+ trap("INT") { puts "SIGINT received"; kill_all("TERM") }
watch_for_termination
end
def execute(name, options={})
fork processes[name], options
trap("TERM") { puts "SIGTERM received"; kill_all("TERM") }
- trap("INT") { puts "SIGINT received"; kill_all("INT") }
+ trap("INT") { puts "SIGINT received"; kill_all("TERM") }
watch_for_termination
end
def port_for(process, num, base_port=nil)