Method: Daemons::Application#show_status

Defined in:
lib/daemons/application.rb

#show_statusObject



459
460
461
462
463
# File 'lib/daemons/application.rb', line 459

def show_status
  running = self.running?
  
  puts "#{self.group.app_name}: #{running ? '' : 'not '}running#{(running and @pid.exist?) ? ' [pid ' + @pid.pid.to_s + ']' : ''}#{(@pid.exist? and not running) ? ' (but pid-file exists: ' + @pid.pid.to_s + ')' : ''}"
end