Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2004 15:06:39 -0400
From:      Charles Swiger <cswiger@mac.com>
To:        questions@FreeBSD.org
Subject:   Re: Using syslog(3) after chroot-ing
Message-ID:  <9D6E84AE-CAC8-11D8-9B33-003065ABFD92@mac.com>
In-Reply-To: <200406301500.18611@misha-mx.virtual-estates.net>
References:  <200406291822.25914@misha-mx.virtual-estates.net> <E2B31D2B-CABA-11D8-9B33-003065ABFD92@mac.com> <200406301500.18611@misha-mx.virtual-estates.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9D6E84AE-CAC8-11D8-9B33-003065ABFD92>