boot ordering and syslogd

Brooks Davis brooks at freebsd.org
Mon Mar 24 14:51:18 PDT 2008


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 
> syslogd is started too late for it to work.  This is because dhclient 
> operates in a chroot jail so must setup it's connection to syslogd before 
> privsep work is done.  This seems like a general problem and one that 
> should be fixed.
> 
> 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
===================================================================
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 @@
 #
 
 # PROVIDE: netif
-# REQUIRE: atm1 cleanvar ipfilter FILESYSTEMS serial sppp sysctl
+# REQUIRE: atm1 cleanvar ipfilter FILESYSTEMS serial sppp sysctl syslogd
 # KEYWORD: nojail
 
 . /etc/rc.subr
Index: syslogd
===================================================================
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 @@
 #
 
 # PROVIDE: syslogd
-# REQUIRE: mountcritremote cleanvar newsyslog
+# REQUIRE: cleanvar newsyslog
 # BEFORE:  SERVERS
 
 . /etc/rc.subr
Index: newsyslog
===================================================================
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 @@
 #
 
 # PROVIDE: newsyslog
-# REQUIRE: cleanvar mountcritremote
+# REQUIRE: cleanvar
 
 . /etc/rc.subr
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20080324/a43a4cad/attachment.pgp


More information about the freebsd-rc mailing list