From nobody@FreeBSD.org  Thu Nov  2 00:47:26 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0588716A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Nov 2006 00:47:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7523243D6A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 Nov 2006 00:47:24 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kA20lOJX058426
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 2 Nov 2006 00:47:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kA20lO6C058425;
	Thu, 2 Nov 2006 00:47:24 GMT
	(envelope-from nobody)
Message-Id: <200611020047.kA20lO6C058425@www.freebsd.org>
Date: Thu, 2 Nov 2006 00:47:24 GMT
From: Claus Endres<claus@endresconsulting.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: XORP startup file has wrong command path and prevents OS start
X-Send-Pr-Version: www-3.0

>Number:         105055
>Category:       ports
>Synopsis:       XORP startup file has wrong command path and prevents OS start
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bms
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 00:50:19 GMT 2006
>Closed-Date:    Thu Nov 02 13:08:52 GMT 2006
>Last-Modified:  Thu Nov  2 13:10:18 GMT 2006
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->bms 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Nov 2 01:03:37 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105055 
State-Changed-From-To: open->closed 
State-Changed-By: bms 
State-Changed-When: Thu Nov 2 13:08:14 UTC 2006 
State-Changed-Why:  
Committed, though this fix is incomplete. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=105055 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/105055: commit references a PR
Date: Thu,  2 Nov 2006 13:08:25 +0000 (UTC)

 bms         2006-11-02 13:08:09 UTC
 
   FreeBSD ports repository (src committer)
 
   Modified files:
     net/xorp/files       xorp.in 
   Log:
   Fix for xorp rc.d script. This is not the correct fix -- a more elegant
   answer to the problem of wrapping the rtrmgr is needed. This only fixes
   the issues described by the submitter and is not complete.
   
   Submitted by:   Claus Endres
   PR:             ports/105055
   
   Revision  Changes    Path
   1.2       +4 -3      ports/net/xorp/files/xorp.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
