From 90989805df696605988a6582f05b099d53a2bc0d Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Tue, 2 Mar 2004 09:56:48 +0000 Subject: Allow users to specify exactly which Quagga daemons should be started using the rc.conf mechanism. Define variables quagga_flags and quagga_daemons to control startup behaviour. Submitted by: Boris Kovalenko (maintainer) --- net/quagga/files/quagga.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'net/quagga') 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 -- cgit v1.2.3