Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: release-1.0.4
Fetching contributors…

Cannot retrieve contributors at this time

executable file 39 lines (36 sloc) 1.34 kB
#!/usr/bin/env ruby
# Phusion Passenger - http://www.modrails.com/
# Copyright (C) 2008 Phusion
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
require 'pathname'
$LOAD_PATH.unshift(File.expand_path("#{File.dirname(__FILE__)}/../lib"))
require 'passenger/spawn_manager'
require 'passenger/utils'
begin
STDOUT.sync = true
STDERR.sync = true
$0 = "Passenger spawn server"
if GC.respond_to?(:copy_on_write_friendly=)
GC.copy_on_write_friendly = true
end
spawn_manager = Passenger::SpawnManager.new
input = IO.new(Passenger::SpawnManager::DEFAULT_INPUT_FD)
spawn_manager.start_synchronously(input)
spawn_manager.cleanup
rescue => e
include Passenger::Utils
print_exception("spawn manager", e)
exit 10
end
Jump to Line
Something went wrong with that request. Please try again.