View previous topic :: View next topic |
Author |
Message |
VinzC Watchman


Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Tue Feb 22, 2005 7:10 pm Post subject: dhcpd log messages are one hour late [SOLVED] |
|
|
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 |
|
 |
ydleiF Apprentice


Joined: 15 Nov 2002 Posts: 170 Location: Southeast Michigan, USA
|
Posted: Wed Feb 23, 2005 3:00 pm Post subject: |
|
|
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 |
|
 |
VinzC Watchman


Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed Feb 23, 2005 4:04 pm Post subject: |
|
|
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 |
|
 |
ydleiF Apprentice


Joined: 15 Nov 2002 Posts: 170 Location: Southeast Michigan, USA
|
Posted: Wed Feb 23, 2005 4:17 pm Post subject: |
|
|
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 |
|
 |
VinzC Watchman


Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed Feb 23, 2005 6:10 pm Post subject: |
|
|
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 |
|
 |
VinzC Watchman


Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Mon Feb 28, 2005 6:40 pm Post subject: |
|
|
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 |
|
 |
|