Parent

Methods

Class/Module Index [+]

Quicksearch

PhusionPassenger::Standalone::StopCommand

Public Instance Methods

run() click to toggle source
# File lib/phusion_passenger/standalone/stop_command.rb, line 35
def run
  @options = { :port => 3000 }
  parse_options
  find_pid_file
  create_controller
  begin
    running = @controller.running?
  rescue SystemCallError, IOError
    running = false
  end
  if running
    @controller.stop
  else
    Standalone::ControlUtils.warn_pid_file_not_found(@options)
    exit 1
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.