Compare commits

...

3 Commits

Author SHA1 Message Date
David Dollar
f34f161899 0.15.0 2011-05-12 13:05:43 -04:00
David Dollar
191581fe85 kill with TERM, even when INT is received by foreman 2011-05-12 13:05:25 -04:00
David Dollar
b98d558bed add blog post to readme 2011-05-12 11:29:56 -04:00
4 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
PATH
remote: .
specs:
foreman (0.14.0)
foreman (0.15.0)
term-ansicolor (~> 1.0.5)
thor (>= 0.13.6)

View File

@@ -2,6 +2,8 @@
## Manual
http://blog.daviddollar.org/2011/05/06/introducing-foreman.html
See the [man page](http://ddollar.github.com/foreman) for usage.
## License

View File

@@ -57,7 +57,7 @@ class Foreman::Engine
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
@@ -66,7 +66,7 @@ class Foreman::Engine
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

View File

@@ -1,5 +1,5 @@
module Foreman
VERSION = "0.14.0"
VERSION = "0.15.0"
end