From owner-freebsd-questions@FreeBSD.ORG Wed Jun 30 19:06:51 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 754F316A4CE for ; Wed, 30 Jun 2004 19:06:51 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65FCB43D48 for ; Wed, 30 Jun 2004 19:06:51 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i5UJ6pn6021427 for ; Wed, 30 Jun 2004 12:06:51 -0700 (PDT) Received: from [10.1.1.193] (nfw2.codefab.com [199.103.21.225] (may be forged)) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 4.0) with ESMTP id i5UJ6dgQ018754 for ; Wed, 30 Jun 2004 12:06:50 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <200406301500.18611@misha-mx.virtual-estates.net> References: <200406291822.25914@misha-mx.virtual-estates.net> <200406301500.18611@misha-mx.virtual-estates.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <9D6E84AE-CAC8-11D8-9B33-003065ABFD92@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Wed, 30 Jun 2004 15:06:39 -0400 To: questions@FreeBSD.org X-Mailer: Apple Mail (2.618) 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 19:06:51 -0000 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