Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2004 18:22:25 -0400
From:      Mikhail Teterin <mi+mx@aldan.algebra.com>
To:        questions@FreeBSD.org
Subject:   Using syslog(3) after chroot-ing
Message-ID:  <200406291822.25914@misha-mx.virtual-estates.net>

next in thread | raw e-mail | index | archive | help
Hello!

I'm writing a daemon, which chroots after initialization. It uses
syslog(3) extensively.

I have already figured out, that I need to openlog() with LOG_NDELAY,
otherwise syslog() will not find the syslogd's socket.

Is there a similar trick to make it use the local timezone instead of
UTC? I'm surprised, the time is interpreted by the sender (rather than
by the syslogd-recipient), but it is -- and I want it to be local,
without copying /etc/localtime into the chroot tree.

Thanks!

	-mi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406291822.25914>