4af0efe66d
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
37 lines
708 B
Bash
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 &
|