Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2002 18:43:50 -0800
From:      Mike Makonnen <mtm@identd.net>
To:        "Daniel C. Sobral" <dcs@tcoip.com.br>
Cc:        current@freebsd.org, obrien@freebsd.org, Doug Barton <DougB@FreeBSD.org>, Gordon Tetlow <gordon@FreeBSD.org>
Subject:   Re: RC NG, ntp and routed
Message-ID:  <20021210024350.GC16008@matrix.identd.net>
In-Reply-To: <3DF4996E.1040706@tcoip.com.br>
References:  <3DF4996E.1040706@tcoip.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--WChQLJJJfbwij+9x
Content-Type: multipart/mixed; boundary="2/5bycvrmDh4d1IB"
Content-Disposition: inline


--2/5bycvrmDh4d1IB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[ cc'd some more people on this ]

On Mon, Dec 09, 2002 at 11:23:58AM -0200, Daniel C. Sobral wrote:
> I suggest that routed be specified as being BEFORE ntpd. In the absence=
=20
> of a route to the specified servers, ntpd has the annoying behavior of=20
> chosing the address of lo0 as the source address for ntp requests,=20
> resulting in all sorts of problems.

Yeah, makes sense. It also worked like that (correctly, that is) in rc.netw=
ork.

>=20
> I do see one contraindication to this behavior. Most routing protocols=20
> also react badly to time changes. Egg and chicken problem, but,=20
> personally, and running OSPF, which is one of those protocols that react=
=20
> badly to time changes, I find it preferably to run the router first.=20
> After all, having ntpd using 127.0.0.1 as source is useless to me.

The following patch should solve your problem. However,
it's only a partial solution. It fixes the case for ntpd
and ntpdate but not for other network daemons like rpcbind, which still get
started _before_ the routing daemons. I haven't included patches for
those because sorting out the dependencies is going to be a bit more
involved. I'll have it done when I get a chance later this week.
(A consequence of this is going to be that we will be moving *away* from
 NetBSD in the dependency ordering, but we can sort that out with them late=
r).

Cheers.
--=20
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC=
 68B9

--2/5bycvrmDh4d1IB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rcng.ntpd"
Content-Transfer-Encoding: quoted-printable

Index: etc/rc.d/ntpd
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/etc/rc.d/ntpd,v
retrieving revision 1.5
diff -u -r1.5 ntpd
--- etc/rc.d/ntpd	2002/10/12 10:31:31	1.5
+++ etc/rc.d/ntpd	2002/12/10 02:09:05
@@ -5,7 +5,7 @@
 #
=20
 # PROVIDE: ntpd
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON routed route6d mrouted mroute6d ntpdate
 # BEFORE:  LOGIN
 # KEYWORD: FreeBSD NetBSD
=20
Index: etc/rc.d/ntpdate
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/etc/rc.d/ntpdate,v
retrieving revision 1.4
diff -u -r1.4 ntpdate
--- etc/rc.d/ntpdate	2002/10/12 10:31:31	1.4
+++ etc/rc.d/ntpdate	2002/12/10 02:09:05
@@ -5,7 +5,8 @@
 #
=20
 # PROVIDE: ntpdate
-# REQUIRE: NETWORKING syslogd
+# REQUIRE: DAEMON routed route6d mrouted mroute6d
+# BEFORE:  LOGIN
 # KEYWORD: FreeBSD NetBSD
=20
 . /etc/rc.subr
Index: etc/rc.d/rpcbind
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/etc/rc.d/rpcbind,v
retrieving revision 1.6
diff -u -r1.6 rpcbind
--- etc/rc.d/rpcbind	2002/09/06 16:18:05	1.6
+++ etc/rc.d/rpcbind	2002/12/10 02:09:05
@@ -5,7 +5,7 @@
 #
=20
 # PROVIDE: rpcbind
-# REQUIRE: NETWORKING ntpdate syslogd named ppp
+# REQUIRE: NETWORKING syslogd named ppp
 # KEYWORD: FreeBSD NetBSD
=20
 . /etc/rc.subr

--2/5bycvrmDh4d1IB--

--WChQLJJJfbwij+9x
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE99VTl2uHir9vMaLkRAo2MAKCllF4Te0Ubo5CEjnp6nC2bxaX0KwCfRJdF
kSdSahxPlbVcoDNKUHGNdFM=
=lx9P
-----END PGP SIGNATURE-----

--WChQLJJJfbwij+9x--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021210024350.GC16008>