ports/105055: XORP startup file has wrong command path and prevents OS start
Claus Endres
claus at endresconsulting.com
Thu Nov 2 00:50:20 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list