lib/daemonizer/cli.rb in daemonizer-0.4.12 vs lib/daemonizer/cli.rb in daemonizer-0.4.13
- old
+ new
@@ -83,10 +83,13 @@
invoke :start, pool_name
end
desc "debug", "Debug pool (do not demonize)"
def debug(pool_name = nil)
- puts "You should supply pool_name to debug" if pool_name.nil?
+ if pool_name.nil?
+ puts "You should supply pool_name to debug"
+ exit 1
+ end
control_pools_loop(pool_name, "execution ended", true) do |pool|
STDOUT.sync = true
engine = Engine.new(pool)
engine.debug!