# 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
Generated with the Darkfish Rdoc Generator 2.