Using syslog(3) after chroot-ing
Mikhail Teterin
mi+mx at aldan.algebra.com
Tue Jun 29 15:24:08 PDT 2004
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
More information about the freebsd-questions
mailing list