Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226491 - net-misc/openntpd-3.9_p1-r1 writes to syslog using wrong timezone
Summary: net-misc/openntpd-3.9_p1-r1 writes to syslog using wrong timezone
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thilo Bangert (RETIRED) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-14 07:08 UTC by Leonid Evdokimov
Modified: 2009-10-14 13:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Evdokimov 2008-06-14 07:08:29 UTC
I'm at Asia/Omsk timezone that is GMT+7 now and I see following in syslog (using syslog-ng):

Jun 14 06:42:45 storage ntpd[4540]: peer 192.108.114.23 now valid
Jun 14 13:43:42 storage ntpd[4539]: adjusting local clock by 1.106534s
Jun 14 06:47:07 storage ntpd[4540]: peer 130.226.232.145 now invalid

That looks insane.

I fixed the issue replacing /var/empty with /var/chroot and copying /etc/localtime to /var/chroot/etc/localtime, I had to fix both /etc/conf.d/ntpd and `ntp` user home directory.

I suppose ebuild should generate "better" chroot for openntpd.

I'm not sure if /var/chroot/etc/localtime should be updated once (in ebuild) or every time /etc/localtime changes (e.g. in /etc/init.d/ntpd script).
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-14 08:05:15 UTC
this is fixed in 3.9_p1-r2 - please test.
sorry for the delay - thanks for the report.
kind regards
Thilo
Comment 2 Leonid Evdokimov 2009-10-14 13:05:15 UTC
Should not openntpd.rc-3.9_p1-r2 be

   #prepare chroot
-  mkdir -p /var/lib/openntpd/chroot/etc/
-  cp /etc/localtime /var/lib/openntpd/chroot/etc
+  mkdir -p ${NTPD_HOME}/etc/
+  cp /etc/localtime ${NTPD_HOME}/etc

?
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-14 13:39:25 UTC
yes - thanks. committed.