class Daemons::Reporter
def status(app_name, running, pid_exists, pid)
def status(app_name, running, pid_exists, pid) output_message "#{app_name}: #{running ? '' : 'not '}running#{(running and pid_exists) ? ' [pid ' + pid.to_s + ']' : ''}#{(pid_exists and not running) ? ' (but pid-file exists: ' + pid.to_s + ')' : ''}" end