lib/activehook/server/manager.rb in activehook-0.1.4 vs lib/activehook/server/manager.rb in activehook-0.1.5
- old
+ new
@@ -19,18 +19,17 @@
#
def start
validate!
start_messages
create_workers
- sleep
+ Process.wait
end
# Shutsdown our Worker processes.
#
def shutdown
- @forks.each { |w| Process.kill('SIGTERM', w[:pid].to_i) }
- Process.kill('SIGTERM', @master)
- exit
+ @forks.each { |w| Process.kill('SIGINT', w[:pid].to_i) }
+ Process.kill('SIGINT', @master)
end
private
# Create the specified number of workers and starts them