Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2008 16:49:56 -0500
From:      Brooks Davis <brooks@freebsd.org>
To:        Sam Leffler <sam@errno.com>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: boot ordering and syslogd
Message-ID:  <20080324214956.GH71536@lor.one-eyed-alien.net>
In-Reply-To: <47E809EE.4080809@errno.com>
References:  <47E809EE.4080809@errno.com>

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

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

On Mon, Mar 24, 2008 at 01:07:10PM -0700, Sam Leffler wrote:
> I tried to use syslog to debug an issue with dhclient and noticed that=20
> syslogd is started too late for it to work.  This is because dhclient=20
> operates in a chroot jail so must setup it's connection to syslogd before=
=20
> privsep work is done.  This seems like a general problem and one that=20
> should be fixed.
>=20
> Anyone got an idea how to correct this?

I think we may need to reconsider some of our startup ordering rules.
Currently we support configurations where local machines have a / on
them, configure and interface, and then mount /usr via NFS.  I'm not
entirely sure that's a reasonable target given that basically everything
netboots these days and am no longer convinced that's worth the
associated cost.  If we relaxed that a bit we might do better.

I do think it's OK to mount /usr via NFS, but we might consider
requiring that the interface already be configured in that case.  We'd
need a script that actually did what mountcritremote's name implied and
attempted to mount critical remote file systems earlier and probably
a script filling its current role.  If we did that we could move the
start of syslogd before netif.  The question is, how do we do that?  The
following will work if /usr is mounted by one of FILESYSTEMS depends or
as part of /.

-- Brooks

Index: netif
=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: /usr/cvs/src/etc/rc.d/netif,v
retrieving revision 1.25
diff -u -p -r1.25 netif
--- netif	26 Jan 2008 11:22:12 -0000	1.25
+++ netif	24 Mar 2008 21:45:27 -0000
@@ -26,7 +26,7 @@
 #
=20
 # PROVIDE: netif
-# REQUIRE: atm1 cleanvar ipfilter FILESYSTEMS serial sppp sysctl
+# REQUIRE: atm1 cleanvar ipfilter FILESYSTEMS serial sppp sysctl syslogd
 # KEYWORD: nojail
=20
 . /etc/rc.subr
Index: syslogd
=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: /usr/cvs/src/etc/rc.d/syslogd,v
retrieving revision 1.13
diff -u -p -r1.13 syslogd
--- syslogd	8 Dec 2007 07:20:22 -0000	1.13
+++ syslogd	24 Mar 2008 21:44:30 -0000
@@ -4,7 +4,7 @@
 #
=20
 # PROVIDE: syslogd
-# REQUIRE: mountcritremote cleanvar newsyslog
+# REQUIRE: cleanvar newsyslog
 # BEFORE:  SERVERS
=20
 . /etc/rc.subr
Index: newsyslog
=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: /usr/cvs/src/etc/rc.d/newsyslog,v
retrieving revision 1.6
diff -u -p -r1.6 newsyslog
--- newsyslog	8 Dec 2007 07:20:22 -0000	1.6
+++ newsyslog	24 Mar 2008 21:44:41 -0000
@@ -4,7 +4,7 @@
 #
=20
 # PROVIDE: newsyslog
-# REQUIRE: cleanvar mountcritremote
+# REQUIRE: cleanvar
=20
 . /etc/rc.subr
=20

--yzvKDKJiLNESc64M
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFH6CIDXY6L6fI4GtQRAoe7AJ9KAGxghVyGYsSYJ9nEbrS7W47azgCZAatY
vQqdsKc+QfZh5kG2sHCIuvM=
=vkOn
-----END PGP SIGNATURE-----

--yzvKDKJiLNESc64M--



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