# File src/ruby_supportlib/phusion_passenger/standalone/status_command.rb, line 36 def run parse_options load_local_config_file load_env_config remerge_all_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