mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
[patch] net/quagga - add optional delay after startup
I'm so tired of my machines rebooting and having to manually start half of the services because they were started when ospfd hadn't kicked in, so I added this quagga_delay to the rc.d file. PR: ports/113351 Submitted by: Edwin Groothuis <edwin@mavetju.org> Approved by: Boris Kovalenko <boris@tagnet.ru>
This commit is contained in:
parent
c78546c92c
commit
3cb2c16787
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193912
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= quagga
|
||||
PORTVERSION= 0.99.7
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= http://quagga.net/download/ \
|
||||
http://www.ru.quagga.net/download/ \
|
||||
|
@ -9,11 +9,14 @@
|
||||
#quagga_enable="YES"
|
||||
#
|
||||
# You may also wish to use the following variables to fine-tune startup:
|
||||
#quagga_flags="-d"
|
||||
#quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"
|
||||
# quagga_flags="-d"
|
||||
# quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"
|
||||
# Per daemon tuning may be done with daemon_name_flags
|
||||
#zebra_flags="-dP 0"
|
||||
#bgpd_flags="-dnrP 0" and so on
|
||||
# zebra_flags="-dP 0"
|
||||
# bgpd_flags="-dnrP 0" and so on
|
||||
# If you want to give the routing deamons a chance to catchup before
|
||||
# continueing, set quagga_delay to a certain amount of seconds.
|
||||
# quagga_delay="30"
|
||||
#
|
||||
#
|
||||
# If the quagga daemons require additional shared libraries to start,
|
||||
@ -42,6 +45,7 @@ load_rc_config $name
|
||||
: ${quagga_flags="-d"}
|
||||
: ${quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"}
|
||||
: ${quagga_extralibs_path=""}
|
||||
: ${quagga_delay="0"}
|
||||
|
||||
quagga_cmd=$1
|
||||
|
||||
@ -78,3 +82,8 @@ for daemon in ${quagga_daemons}; do
|
||||
eval flags=\$\{${daemon}_flags:-\"${quagga_flags}\"\}
|
||||
run_rc_command "$1"
|
||||
done
|
||||
|
||||
if [ "${quagga_delay}" != "0" ]; then
|
||||
echo "Sleeping ${quagga_delay} to obtain dynamic routing information..."
|
||||
sleep ${quagga_delay}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user