Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2006 00:47:24 GMT
From:      Claus Endres<claus@endresconsulting.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/105055: XORP startup file has wrong command path and prevents OS start
Message-ID:  <200611020047.kA20lO6C058425@www.freebsd.org>
Resent-Message-ID: <200611020050.kA20oJxb069186@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105055
>Category:       ports
>Synopsis:       XORP startup file has wrong command path and prevents OS start
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 00:50:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Claus Endres
>Release:        6.1
>Organization:
Endres Consulting
>Environment:
FreeBSD fwimmimm.mov.vic.gov.au 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Fri Oct 27 19:17:27 EST 2006     claus@fwimmimm.mov.vic.gov.au:/usr/src/sys/i386/compile/MROUTE  i386
>Description:
the xorp startup file in /usr/local/etc/rc.d has two problems:
1) it contains the wrong path for xorp_rtrmgr
   
   command=/usr/local/rtrmgr/xorp_rtrmgr

   the path is appropriate for a direct installation of xorp from source,
   not one via the FreeBSD ports system.

2) it prevents the OS from starting

   The last command in the startup file runs rtrmgr:

   run_rc_command "$1"

   Unfortunately, xorp_rtrmgr does not run as a daemon, but remains
   in the foreground, so the xorp startup script never finishes (unless
   xorp crashes), and FreeBDS never completes system startup.

>How-To-Repeat:
Install XORP, enable xorp_enable="YES", and see what happens
>Fix:
1) Change the path in /usr/ports/net/xorp/files/xorp.in to reflect the FreeBSD
   ports installation of XORP:

   command=%%PREFIX%%/bin/xorp_rtrmgr

2) force xorp_rtrmgr into the background and divert output into a log file:

   run_rc_command "$1" >> /var/log/xorp.log 2>&1 &
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611020047.kA20lO6C058425>