#!/bin/sh
#
# $FreeBSD: ports/net/xorp/files/xorp.in,v 1.2 2006/11/02 13:08:09 bms Exp $
#
# 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="/usr/local/etc/xorp.conf.sample"
#
. /etc/rc.subr
name="xorp"
rcvar=`set_rcvar`
load_rc_config $name
: ${xorp_enable="NO"}
: ${xorp_config_boot="/usr/local/etc/xorp.conf.sample"}
: ${xorp_flags=""}
: ${xorp_rtrmgr_pidfile="/var/run/xorp_rtrmgr.pid"}
required_files=${xorp_config_boot}
command=/usr/local/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 &
syntax highlighted by Code2HTML, v. 0.9.1