[Rt-commit] r12795 - in rt/branches/3.8-TESTING: .

sartak at bestpractical.com sartak at bestpractical.com
Mon Jun 2 12:21:06 EDT 2008


Author: sartak
Date: Mon Jun  2 12:21:03 2008
New Revision: 12795

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/sbin/rt-server.in

Log:
 r61391 at onn:  sartak | 2008-06-02 12:20:09 -0400
 Remove some unreachable code from bin/rt-server.in - need new logic for automatically retrying a higher port


Modified: rt/branches/3.8-TESTING/sbin/rt-server.in
==============================================================================
--- rt/branches/3.8-TESTING/sbin/rt-server.in	(original)
+++ rt/branches/3.8-TESTING/sbin/rt-server.in	Mon Jun  2 12:21:03 2008
@@ -121,22 +121,5 @@
 my $server = RT::Interface::Web::Standalone->new;
 $server->net_server('RT::Interface::Web::Standalone::PreFork');
 $server->port($port);
-eval { $server->run() };
-
-if (my $err = $@) {
-   if ($err =~ /bind: Permission denied/ && $port <= 1024) {
-        print STDERR <<EOF;
-RT couldn't start up a web server on port @{[$port]}. This is often the case 
-if you're running @{[$0]} as someone other than your 
-system's "root" user.  
-
-For now, RT has picked a random alternate port to run on.
-EOF
-        $server->port( 8000 + int(rand(1024))) ;
-        $server->run;
-   } else {
-        die $err;
-   }
-}
-
+$server->run();
 


More information about the Rt-commit mailing list