From owner-freebsd-questions@FreeBSD.ORG Wed Jun 30 23:51:02 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2149B16A4CE for ; Wed, 30 Jun 2004 23:51:02 +0000 (GMT) Received: from dns13.mail.yahoo.co.jp (dns13.mail.yahoo.co.jp [210.81.151.173]) by mx1.FreeBSD.org (Postfix) with SMTP id 1DE0843D31 for ; Wed, 30 Jun 2004 23:51:01 +0000 (GMT) (envelope-from ayakokiko@ybb.ne.jp) Received: from unknown (HELO gorgon.near.this) (219.11.234.11 with poptime) by dns13.mail.yahoo.co.jp with SMTP; 30 Jun 2004 23:50:48 -0000 X-Apparently-From: Received: from hydra.near.this (hydra.near.this [10.0.3.20]) by gorgon.near.this (Postfix) with ESMTP id B19C77F24; Thu, 1 Jul 2004 08:50:43 +0900 (JST) Received: by hydra.near.this (Postfix, from userid 100) id 04E0898F4; Thu, 1 Jul 2004 08:50:42 +0900 (JST) Date: Thu, 1 Jul 2004 08:50:42 +0900 From: horio shoichi To: Charles Swiger In-Reply-To: <9D6E84AE-CAC8-11D8-9B33-003065ABFD92@mac.com> References: <200406291822.25914@misha-mx.virtual-estates.net> <200406301500.18611@misha-mx.virtual-estates.net> <9D6E84AE-CAC8-11D8-9B33-003065ABFD92@mac.com> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040630.235042.21cf5e36a186d85a.10.0.3.20@bugsgrief.net> cc: questions@FreeBSD.org Subject: Re: Using syslog(3) after chroot-ing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 23:51:02 -0000 On Wed, 30 Jun 2004 15:06:39 -0400 Charles Swiger wrote: > On Jun 30, 2004, at 3:00 PM, Mikhail Teterin wrote: > > =What happens if you set TZ in the environment which syslogd is started > > =up from? > > > > That's an idea. Can I just call tzset() (or tzsetwall()?) prior to > > chroot-ing? > > I suspect that you could indeed. Again, just to be clear: the > timestamps are produced by syslogd, not by the program doing the > logging, so you'd have to change syslogd itself. > > -- > -Chuck > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > The tzset() alone doesn't fill the gap. You need fill /chrootedplace/etc/localtime with valid local time information. For syslogd to catch logs, the socket must be captured by it: /chrootedplace/{dev/log,var/run/log}, depending on your preference. horio shoichi