Methods

Class/Module Index [+]

Quicksearch

PhusionPassenger::Standalone::StatusCommand

Public Instance Methods

run() click to toggle source
# File lib/phusion_passenger/standalone/status_command.rb, line 35
def run
  @options = { :port => 3000 }
  parse_options
  find_pid_file
  create_controller
  begin
    running = @controller.running?
    pid = @controller.pid
  rescue SystemCallError, IOError
    running = false
  end
  if running
    puts "#{PROGRAM_NAME} Standalone is running on PID #{pid}, according to PID file #{@options[:pid_file]}"
  else
    puts "#{PROGRAM_NAME} Standalone is not running, according to PID file #{@options[:pid_file]}"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.