From edwin@mavetju.org  Tue Jun  5 01:26:36 2007
Return-Path: <edwin@mavetju.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id A4D4316A400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Jun 2007 01:26:36 +0000 (UTC)
	(envelope-from edwin@mavetju.org)
Received: from mail4out.barnet.com.au (mail4.barnet.com.au [202.83.178.125])
	by mx1.freebsd.org (Postfix) with ESMTP id 6877D13C448
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Jun 2007 01:26:36 +0000 (UTC)
	(envelope-from edwin@mavetju.org)
Received: by mail4out.barnet.com.au (Postfix, from userid 1001)
	id 4664337D1BE; Tue,  5 Jun 2007 11:26:35 +1000 (EST)
Received: from mail4auth.barnet.com.au (mail4.barnet.com.au [202.83.178.125])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mail4.barnet.com.au (Postfix) with ESMTP id 1921E422EF9
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Jun 2007 11:26:35 +1000 (EST)
Received: from k7.mavetju (k7.mavetju.org [10.251.1.18])
	by mail4auth.barnet.com.au (Postfix) with ESMTP id BDC0237D1A4
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Jun 2007 11:26:34 +1000 (EST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id 9F4D798; Tue,  5 Jun 2007 11:26:34 +1000 (EST)
Message-Id: <20070605012634.9F4D798@k7.mavetju>
Date: Tue,  5 Jun 2007 11:26:34 +1000 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] net/quagga - add optional delay after startup
X-Send-Pr-Version: 3.113
X-GNATS-Notify: boris@tagnet.ru

>Number:         113351
>Category:       ports
>Synopsis:       [patch] net/quagga - add optional delay after startup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 05 01:30:02 GMT 2007
>Closed-Date:    Wed Jun 20 02:20:10 GMT 2007
>Last-Modified:  Wed Jun 20 02:30:03 GMT 2007
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Jun 5 01:30:20 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113351 

From: Boris Kovalenko <boris@tagnet.ru>
To: bug-followup@FreeBSD.org,  edwin@mavetju.org
Cc:  
Subject: Re: ports/113351: [patch] net/quagga - add optional delay after startup
Date: Mon, 18 Jun 2007 14:11:30 +0600

 Hello!
 
 	Approved.
 
 With respect,
 	Boris
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Mon Jun 18 09:07:36 UTC 2007 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113351 
Responsible-Changed-From-To: freebsd-ports-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jun 18 11:36:31 UTC 2007 
Responsible-Changed-Why:  
My PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113351 
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Wed Jun 20 02:20:00 UTC 2007 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113351 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/113351: commit references a PR
Date: Wed, 20 Jun 2007 02:20:01 +0000 (UTC)

 edwin       2007-06-20 02:19:55 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net/quagga           Makefile 
     net/quagga/files     quagga.sh.in 
   Log:
   [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>
   
   Revision  Changes    Path
   1.55      +1 -1      ports/net/quagga/Makefile
   1.7       +13 -4     ports/net/quagga/files/quagga.sh.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
