public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] ntpd crashes, system set to UTC
@ 2013-08-23 19:53 Randy Westlund
  2013-08-23 22:38 ` Canek Peláez Valdés
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Westlund @ 2013-08-23 19:53 UTC (permalink / raw
  To: gentoo-user

Hey guys,

I'm having some trouble with ntpd and my system clock.  Every once and a while, my system time is wrong.  In the past (not having time to look into it), I've just run ntp-client to correct it.

Turns out that ntpd is crashing and `date` reports the UTC time, but thinks it's Eastern.  This time I didn't correct the time and tried rebooting a few times.  ntpd crashes within 5 minutes of boot, leading me to suspect the the time being off is what's causing ntpd to crash.

Info about my system:  I dual boot with windows, so my /etc/conf.d/hwclock looks like this:

> clock="local"
> clock_systohc="YES"
> clock_hctosys="YES"
> clock_args=""

I also have CONFIG_RTC_HCTOSYS and CONFIG_RTC_SYSTORC set in my kernel.

ntpd is in my default runlevel, ntp-client is not.

My /etc/ntp.conf looks like this:

> server 0.gentoo.pool.ntp.org
> server 1.gentoo.pool.ntp.org
> server 2.gentoo.pool.ntp.org
> server 3.gentoo.pool.ntp.org
> driftfile	/var/lib/ntp/ntp.drift
> restrict default nomodify nopeer noquery
> restrict 127.0.0.1

What am I doing wrong?  Where should I look for more information on the problem?

Randy


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] ntpd crashes, system set to UTC
  2013-08-23 19:53 [gentoo-user] ntpd crashes, system set to UTC Randy Westlund
@ 2013-08-23 22:38 ` Canek Peláez Valdés
  0 siblings, 0 replies; 2+ messages in thread
From: Canek Peláez Valdés @ 2013-08-23 22:38 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 23, 2013 at 2:53 PM, Randy Westlund <rwestlun@gmail.com> wrote:
> Hey guys,
>
> I'm having some trouble with ntpd and my system clock.  Every once and a while, my system time is wrong.  In the past (not having time to look into it), I've just run ntp-client to correct it.
>
> Turns out that ntpd is crashing and `date` reports the UTC time, but thinks it's Eastern.  This time I didn't correct the time and tried rebooting a few times.  ntpd crashes within 5 minutes of boot, leading me to suspect the the time being off is what's causing ntpd to crash.
>
> Info about my system:  I dual boot with windows, so my /etc/conf.d/hwclock looks like this:
>
>> clock="local"
>> clock_systohc="YES"
>> clock_hctosys="YES"
>> clock_args=""
>
> I also have CONFIG_RTC_HCTOSYS and CONFIG_RTC_SYSTORC set in my kernel.
>
> ntpd is in my default runlevel, ntp-client is not.
>
> My /etc/ntp.conf looks like this:
>
>> server 0.gentoo.pool.ntp.org
>> server 1.gentoo.pool.ntp.org
>> server 2.gentoo.pool.ntp.org
>> server 3.gentoo.pool.ntp.org
>> driftfile     /var/lib/ntp/ntp.drift
>> restrict default nomodify nopeer noquery
>> restrict 127.0.0.1
>
> What am I doing wrong?  Where should I look for more information on the problem?

ntpd should not crash no matter what, but what is /etc/localtime?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-23 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23 19:53 [gentoo-user] ntpd crashes, system set to UTC Randy Westlund
2013-08-23 22:38 ` Canek Peláez Valdés

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox