From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 22:24:07 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 DEA9D16A4CE for ; Tue, 29 Jun 2004 22:24:07 +0000 (GMT) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53EAB43D46 for ; Tue, 29 Jun 2004 22:24:07 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from 250-217.customer.cloud9.net (195-11.customer.cloud9.net [168.100.195.11])i5TMMjMN043014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 29 Jun 2004 18:22:46 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (mteterin@localhost [127.0.0.1]) i5TMMQ25037075 for ; Tue, 29 Jun 2004 18:22:31 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: questions@FreeBSD.org Date: Tue, 29 Jun 2004 18:22:25 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406291822.25914@misha-mx.virtual-estates.net> X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.39 Subject: 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: Tue, 29 Jun 2004 22:24:08 -0000 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