blob: abf1e0cddc46faf3ddf8819f03862c1dcfc03034 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/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 &
|