[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-62-g740df59
Ruslan Zakirov
ruz at bestpractical.com
Mon Dec 28 20:50:46 EST 2009
The branch, 3.8-trunk has been updated
via 740df592dd9c6f473f7e2c1786dd33f2c9a8e50d (commit)
from 669cc7447cd011cf1dd896ab9517634c8ea0bd59 (commit)
Summary of changes:
bin/fastcgi_server.in | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 740df592dd9c6f473f7e2c1786dd33f2c9a8e50d
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Tue Dec 29 04:49:41 2009 +0300
--pidfile option in external fastcgi server
diff --git a/bin/fastcgi_server.in b/bin/fastcgi_server.in
index 38f4e96..9124232 100644
--- a/bin/fastcgi_server.in
+++ b/bin/fastcgi_server.in
@@ -90,6 +90,8 @@ usually F</opt/rt3/var/fastcgi.sock>.
=item -p, --port - port to use instead of socket, by default socket is
used.
+=item --pidfile - pid file path, by default F<RT/var/path/fastcgi.pid>.
+
=back
=head1 SERVER CONFIGURATION
@@ -155,6 +157,7 @@ GetOptions(
's|socket=s' => \$opt{'socket'},
'p|port=s' => \$opt{'port'},
'n|nprocesses=s' => \$opt{'nprocesses'},
+ 'pidfile=s' => \$opt{'pidfile'},
);
if ( $opt{'help'} ) {
@@ -174,16 +177,18 @@ unless ( $opt{'socket'} && $opt{'port'} ) {
require File::Spec;
$opt{'socket'} = File::Spec->catfile($RT::VarPath, 'fastcgi.sock');
}
-
if ( $opt{'port'} ) {
$opt{'socket'} = ':'. $opt{'port'};
}
$ENV{'FCGI_SOCKET_PATH'} = $opt{'socket'};
+$opt{'pidfile'} ||= File::Spec->catfile($RT::VarPath, 'fastcgi.pid');
+
require CGI::Fast;
my $proc_manager = RT::Interface::Web::FCGI::Server->new({
n_processes => $opt{'nprocesses'} || 10,
+ pid_fname => $opt{'pidfile'},
});
$proc_manager->pm_manage();
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list