freebsd-ports/net/xorp/files/xorp.in
Bruce M Simpson 4af0efe66d 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
2006-11-02 13:08:09 +00:00

37 lines
708 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# A sample XORP startup script.
#
# PROVIDE: xorp
# REQUIRE: netif routing mountcritlocal
# BEFORE: NETWORKING
# Add the following lines to /etc/rc.conf to enable xorp:
#
#xorp_enable="YES"
#xorp_config_boot="%%PREFIX%%/etc/xorp.conf.sample"
#
. %%RC_SUBR%%
name="xorp"
rcvar=`set_rcvar`
load_rc_config $name
: ${xorp_enable="NO"}
: ${xorp_config_boot="%%PREFIX%%/etc/xorp.conf.sample"}
: ${xorp_flags=""}
: ${xorp_rtrmgr_pidfile="/var/run/xorp_rtrmgr.pid"}
required_files=${xorp_config_boot}
command=%%PREFIX%%/bin/xorp_rtrmgr
command_args="-b ${xorp_config_boot}"
pidfile=${xorp_rtrmgr_pidfile}
sig_stop=INT
# XXX: This is not the correct fix.
run_rc_command "$1" 2>&1 &