Using syslog(3) after chroot-ing
mi+mx at aldan.algebra.com
Tue Jun 29 15:24:08 PDT 2004
I'm writing a daemon, which chroots after initialization. It uses
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.
More information about the freebsd-questions