diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2004-03-02 09:56:48 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2004-03-02 09:56:48 +0000 |
commit | 90989805df696605988a6582f05b099d53a2bc0d (patch) | |
tree | 03a008ee716ae0e548afb5829b7ae165d37884fa /net/quagga | |
parent | 823dac3dec669dbfe57ed96acd8753661a2b1d51 (diff) | |
download | ports-90989805df696605988a6582f05b099d53a2bc0d.tar.gz ports-90989805df696605988a6582f05b099d53a2bc0d.zip |
Notes
Diffstat (limited to 'net/quagga')
-rw-r--r-- | net/quagga/files/quagga.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/net/quagga/files/quagga.sh b/net/quagga/files/quagga.sh index 8e8f2f189cd0..4b2a92a968dd 100644 --- a/net/quagga/files/quagga.sh +++ b/net/quagga/files/quagga.sh @@ -2,14 +2,19 @@ # # PROVIDE: quagga -# REQUIRE: netif routing -# KEYWORD: FreeBSD shutdown +# REQUIRE: netif routing mountcritlocal +# BEFORE: NETWORKING +# KEYWORD: FreeBSD NetBSD # # Add the following lines to /etc/rc.conf to enable quagga: # #quagga_enable="YES" # +# You may also use next flags to tune startup +#quagga_flags="-d" +#quagga_daemons="zebra ripd ripng ospfd ospf6d bgpd" +# . %%RC_SUBR%% @@ -28,10 +33,9 @@ stop_postcmd() quagga_enable=${quagga_enable:-"NO"} quagga_flags=${quagga_flags:-"-d"} +quagga_daemons=${quagga_daemons:-"zebra ripd ripng ospfd ospf6d bgpd"} load_rc_config $name -QUAGGA_DAEMONS="zebra ripd ripng ospfd ospf6d bgpd" - quagga_cmd=$1 case "$1" in @@ -44,10 +48,10 @@ case "$1" in esac if [ ${quagga_cmd} = "stop" ]; then - QUAGGA_DAEMONS=$(reverse_list ${QUAGGA_DAEMONS}) + quagga_daemons=$(reverse_list ${quagga_daemons}) fi -for daemon in ${QUAGGA_DAEMONS}; do +for daemon in ${quagga_daemons}; do command=%%PREFIX%%/sbin/${daemon} required_files=%%SYSCONF_DIR%%/${daemon}.conf pidfile=%%LOCALSTATE_DIR%%/${daemon}.pid |