From owner-freebsd-rc@FreeBSD.ORG Tue Mar 25 00:05:48 2008 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1890106564A; Tue, 25 Mar 2008 00:05:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 611F38FC1A; Tue, 25 Mar 2008 00:05:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m2P033tJ050156; Mon, 24 Mar 2008 18:03:03 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 24 Mar 2008 18:03:44 -0600 (MDT) Message-Id: <20080324.180344.106014229.imp@bsdimp.com> To: sam@errno.com From: "M. Warner Losh" In-Reply-To: <47E81DD1.8050205@errno.com> References: <47E809EE.4080809@errno.com> <47E81D12.5090201@FreeBSD.org> <47E81DD1.8050205@errno.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: dougb@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: boot ordering and syslogd X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2008 00:05:48 -0000 In message: <47E81DD1.8050205@errno.com> Sam Leffler writes: : Doug Barton wrote: : > 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? : > : > It's a chicken-and-egg issue because if you need the network to do : > remote syslog'ing (or syslog'ing to an NFS partition, etc.), you need : > the network up first. : > : > What I've done in similar situations is to modify a copy of : > dhclient-script to spit out data to a text file. If you need something : > more robust you could always change the ordering locally. If you need : > help with that just let us know. : : Er, this is a problem that needs to be fixed; not hacked around w/ local : mods. We are losing logging that makes diagnosing problems hard. Yes. We need to fix syslogd to be able to start before the network or even FS are mounted and have the only thing that goes 'bad' be the data to the missing data sinks (disk, network, etc). A quick fix to this would be to have syslog get a HUP after each of these events and start syslogd just as soon as /usr is mounted. Warner