Bug 105055 - XORP startup file has wrong command path and prevents OS start
Summary: XORP startup file has wrong command path and prevents OS start
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bruce M Simpson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-02 00:50 UTC by claus
Modified: 2006-11-02 13:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description claus 2006-11-02 00:50:19 UTC
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.

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 &
How-To-Repeat: Install XORP, enable xorp_enable="YES", and see what happens
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-11-02 01:03:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bms

Over to maintainer
Comment 2 Bruce M Simpson freebsd_committer freebsd_triage 2006-11-02 13:08:14 UTC
State Changed
From-To: open->closed

Committed, though this fix is incomplete.
Comment 3 dfilter service freebsd_committer freebsd_triage 2006-11-02 13:08:25 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"