Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 51588

Summary: dhcpd => Wrong time in logfile when dhcpd runs in a jail
Product: Gentoo Linux Reporter: inode77 <simon.gerber>
Component: [OLD] ServerAssignee: Max Kalika (RETIRED) <max>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: Low    
Version: 2004.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description inode77 2004-05-20 13:00:38 UTC
After emerging net-misc/dhcp-3.0_p2-r6 and reconfiguring for chrooted use all works fine, but in my log files the dhcp lines are two hours off the normal system time. (I use "local" in "/etc/rc.conf" and "/etc/localtime" is a link to "/usr/share/zoneinfo/Europe/Zurich").
T

Reproducible: Always
Steps to Reproduce:
1.emerge dhcp
2.emerge pkg/pkg-version config
3.start dhcp in chroot
4.take a look into a logtime for dhcp msgs compared to system time

Actual Results:  
Time was 2h off.

Expected Results:  
Correct time => localtime => UTC + 1h (in my case)

This "bug" (I don't know if a logtime that's not entierly correct is one) can be
corrected easily. Just copy your zonefile to "/chroot/dhcp/etc/localtime".
Please add a line to the ebuild to do the copy automatically.
The bind package does the same thing if run in chroot.
Comment 1 SpanKY gentoo-dev 2004-08-31 15:02:46 UTC

*** This bug has been marked as a duplicate of 41217 ***