lib/rabbit_wq/cli.rb in rabbit-wq-1.7.0 vs lib/rabbit_wq/cli.rb in rabbit-wq-1.8.0
- old
+ new
@@ -118,10 +118,11 @@
stop
start_daemon
end
def status
- RabbitWQ::ServerDaemon.new( options ).status
+ result = RabbitWQ::ServerDaemon.new( options ).status
+ at_exit { exit result }
end
end
end