Closed thuehlinger closed 10 years ago
Would this be at Daemons::Controller.run:
def run
...
when 'status'
unless @group.applications.empty?
@group.show_status
else
puts "#{@group.app_name}: no instances running"
end
I suppose the simplest implementation is to add exit 3
after that puts.
I'd like to have Daemons return non-zero value when I try status subcommand for a not-working daemon. Right now, the status subcommand always exit by the status '0'. Normally, the status subcommand would exit by the status '3' when the daemon is not running. I hope Daemons be the same.
As far as I see the source code, it may require not-so-small change, so I created this issue on "Feature Request".