From owner-freebsd-questions@FreeBSD.ORG Wed Oct 3 02:32:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DD4B16A417 for ; Wed, 3 Oct 2007 02:32:33 +0000 (UTC) (envelope-from andrew@scoop.co.nz) Received: from a3.scoop.co.nz (a3.scoop.co.nz [202.50.109.77]) by mx1.freebsd.org (Postfix) with ESMTP id 2566113C4A6 for ; Wed, 3 Oct 2007 02:32:32 +0000 (UTC) (envelope-from andrew@scoop.co.nz) Received: from [192.168.1.100] (121-73-22-92.cable.telstraclear.net [121.73.22.92]) (Authenticated sender: sendit@a3.scoop.co.nz) by a3.scoop.co.nz (Postfix) with ESMTP id 40AF139830 for ; Wed, 3 Oct 2007 15:17:24 +1300 (NZDT) Message-ID: <4702FBA7.6040203@scoop.co.nz> Date: Wed, 03 Oct 2007 15:17:11 +1300 From: Andrew McNaughton User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: How do I catch timezone update and perform needed actions? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 02:32:33 -0000 OK, so daylight savings just rolled over again. Applications which are already running apparently do not pick up the time zone change. In my installation apache is not regularly restarted, so it's 4 days later and I just noticed that apache has been putting the wrong time stamps on everything, and a script that regularly processes the last 10 minutes of log data based on time stamps on log lines has been coming up empty for days as a result. What I need is a way to stop this happening again in years to come. I thought about submitting a pr asking for some system change such that a user configurable script gets run whenever the time zone changes. Perhaps such a mechanism exists already though? Any pointers? Should this be submitted as a pr? Andrew