Date: Tue, 5 Jun 2007 11:26:34 +1000 (EST) From: Edwin Groothuis <edwin@mavetju.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/113351: [patch] net/quagga - add optional delay after startup Message-ID: <20070605012634.9F4D798@k7.mavetju> Resent-Message-ID: <200706050130.l551U24q041592@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 113351 >Category: ports >Synopsis: [patch] net/quagga - add optional delay after startup >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 05 01:30:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 6.2-RELEASE-p4 i386 >Organization: - >Environment: System: FreeBSD k7.mavetju 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:55:55 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386 >Description: 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. >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net/quagga/Makefile,v retrieving revision 1.54 diff -u -r1.54 Makefile --- Makefile 27 May 2007 09:30:14 -0000 1.54 +++ Makefile 5 Jun 2007 01:24:34 -0000 @@ -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/ \ Index: files/quagga.sh.in =================================================================== RCS file: /home/pcvs/ports/net/quagga/files/quagga.sh.in,v retrieving revision 1.6 diff -u -r1.6 quagga.sh.in --- files/quagga.sh.in 17 Jul 2006 16:28:21 -0000 1.6 +++ files/quagga.sh.in 5 Jun 2007 01:24:34 -0000 @@ -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 @@ : ${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 @@ 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 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070605012634.9F4D798>