Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpd log messages are one hour late [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Feb 22, 2005 7:10 pm    Post subject: dhcpd log messages are one hour late [SOLVED] Reply with quote

Hi, all.

I'm running DHCP 3.0.1+BIND 9.2.2-r3 on my Gentoo (home) server. I've noticed all my DHCP log messages are one hour late compared to every other message. Is it normal or have I missed something? FYI I live in Belgium and we've now switched to winter time (GMT+1, I think).

Thanks for any hint.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Mon Feb 28, 2005 6:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
ydleiF
Apprentice
Apprentice


Joined: 15 Nov 2002
Posts: 170
Location: Southeast Michigan, USA

PostPosted: Wed Feb 23, 2005 3:00 pm    Post subject: Reply with quote

Are you running dhcpd in a chroot "jail"? You'd probably know if you did, however looking in /chroot for "dhcp" would be a yes answer. Now that I think about it, it might not have to be in a jail for this.

Anyway, I think that dhcpd diliberately logs in GMT, and has no option to do otherwise. I'm something like 6 hours behind here, it's annoying.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Feb 23, 2005 4:04 pm    Post subject: Reply with quote

I run chrooted dhcpd and bind. I used a different root path however. So there's no hope :( ?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
ydleiF
Apprentice
Apprentice


Joined: 15 Nov 2002
Posts: 170
Location: Southeast Michigan, USA

PostPosted: Wed Feb 23, 2005 4:17 pm    Post subject: Reply with quote

Well my mind is working slow, it was either that dhcpd use GMT in a chroot, always, or use GMT always, period. I think there was some info on dhcpd's page, or might google for something similar. I think you're stuck though.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Wed Feb 23, 2005 6:10 pm    Post subject: Reply with quote

I just wonder why it's up to the applications to log the date and time. Wouldn't it have been simpler if syslog did that instead, full stop? There seems to be nothing to prevent from logging an event as if it were 6 years ago (apart from seeing the event occur in real time). I can live with it though.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Feb 28, 2005 6:40 pm    Post subject: Reply with quote

Found how to fix this: copy your localtime file to /dhcp/chroot/dir/etc/localtime. BIND does that, I think, inside the configuration script (ebuild /var/portage/.../bind..../bind...ebuild config). So DHCP config script should do the same, IMHO. Example:
Code:
cp /usr/share/zoneinfo/Europe/Brussels /chroot/dhcp/etc/localtime

Now you have DHCP log messages with the correct time. Don't know if it would work with a symlink.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum