thttpd and time zones?
Is anyone else running thttpd on SuSE Linux and experiencing wierd time zone behaviour? I have thttpd running as a light-weight Web server on our Web proxies in order to provide access to the autoproxy "proxy.pac" file (leaving this duty up to the corporate Web "experts" has proven to be too great a risk): hostname:~ # cat /etc/SuSE-release ; uname -srm ; rpm -q thttpd SuSE Linux 9.2 (x86-64) VERSION = 9.2 Linux 2.6.8-24.16-smp x86_64 thttpd-2.25b-27 Using the default SuSE configuration, thttpd writes primarily to the log "/var/log/thttpd.log", though periodically it likes to dump status info to the system log (/var/log/messages). In both cases, thttpd seems to prefer UTC/GMT rather than the local time zone - for example, the request log (/var/log/thttpd.log) contains time stamps like this: 09/Jul/2005:07:17:39 +0000 instead of this: 09/Jul/2005:17:17:39 +1000 Okay, that's fine and restricted to the access log - I can adjust for that and am not too worried; however, entries written to the system log are _also_ in the wrong time zone, so /var/log/messages ends up containing time stamps like this: Jul 9 16:28:45 hostname -- MARK -- Jul 9 06:29:15 hostname thttpd... Jul 9 06:29:15 hostname thttpd... Jul 9 06:29:15 hostname thttpd... Jul 9 06:29:15 hostname thttpd... Jul 9 06:29:15 hostname thttpd... Jul 9 06:29:15 hostname thttpd... Jul 9 16:48:45 hostname -- MARK -- Jumping backwards/forwards 10 or more (during DST) hours in the middle of the system log is something I'd like to avoid if possible. The system clock is set as per: hostname:~ # egrep -v '^(#|$)' /etc/sysconfig/clock HWCLOCK="--localtime" TIMEZONE="Australia/Sydney" DEFAULT_TIMEZONE="Australia/Sydney" The machine runs NTP to keep the clock accurate and is synchronised to two stratum 2 NTP servers. Other commands/services such as "date" or even Sendmail all show the correct time and time zone - for example: hostname:~ # date +%z +1000 Any idea why thttpd doesn't want to co-operate? Is this normal for thttpd, something in the SuSE RPM for thttpd or something screwed on my system? Thanks for any hints/data points...
participants (1)
-
David J N Begley