[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-876-ge92e47a

Chia-liang Kao clkao at bestpractical.com
Tue Dec 14 11:10:43 EST 2010


The branch, 3.9-trunk has been updated
       via  e92e47ad766fccb2d8d6616ab132bf068608798b (commit)
      from  beca85780ca8bab6fd8d4df19b9f9cdb87ef7e8b (commit)

Summary of changes:
 sbin/rt-server.in |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit e92e47ad766fccb2d8d6616ab132bf068608798b
Author: Chia-liang Kao <clkao at bestpractical.com>
Date:   Wed Dec 15 00:10:30 2010 +0800

    hint about --port when we fail to bind

diff --git a/sbin/rt-server.in b/sbin/rt-server.in
index c34a985..611259e 100755
--- a/sbin/rt-server.in
+++ b/sbin/rt-server.in
@@ -200,7 +200,7 @@ exit 0;
 
 sub handle_startup_error {
     my $err = shift;
-    if ( $err =~ /listen.*Permission denied/ ) {
+    if ( $err =~ /listen/ ) {
         handle_bind_error();
     } else {
         die
@@ -215,7 +215,8 @@ sub handle_bind_error {
     print STDERR <<EOF;
 WARNING: 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.  
+someone other than your system's "root" user.  You may also specify a
+temporary port with: $0 --port <port>
 EOF
 
     if ($explicit_port) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list