Re: simple time server



using the local system time.

That presupposes that both your clients and servers are located in the
same time-zone.

I don't mean "local time" as in 12:00 means solar noon. I mean the time
maintained locally on the system, as opposed to something that's supposed
to match a higher stratum NTP server.

ntpd needs to be able to adjust the clock. This usually can only be done
by the root user.

Exactly. The simple service I'm trying to provide, for which I
hypothesized Nptd might be adequate in some mode, has no need to
adjust the clock. So the fact that Ntpd insists on superuser
privilege is evidence that my hypothesis was wrong.

and the fact that it put my kernel in the hardware clock updating
mode).

That's usually considered to be a good thing. Why don't you want it to
happen?

Well, I never said I didn't want it to happen. I said it was evidence
that Ntpd in the mode I ran it in is not the simple time service I
described.

But I also don't want it to happen. For two reasons:

1) Philosophically, the Linux kernel has no business messing with the
hardware clock. That's something that makes more sense done by a
user space process dedicated to that task. (Ntpd might be a good
choice for that process, but might not).

2) With somebody constantly correcting the hardware clock, it's impossible
to tell what the systematic drift rate of it is, so it's impossible
to keep accurate time while the kernel is not running.

I use Hwclock and its adjtime file to take care of hardware clock
drift while the kernel is not running, but that works only if Hwclock
is the only thing that ever sets the hardware clock.

The system clock on most Unix systems operates in UTC. Conversion to the
desired time zone is performed by the OS.

The system clock on a Unix system doesn't operate in a time zone at
all. It keeps absolute time. The OS doesn't convert to local time;
it generates it -- from two pieces of information: 1) absolute time;
2) time zone.

--
Bryan Henderson Phone 408-621-2000
San Jose, California
_______________________________________________
questions mailing list
questions@xxxxxxxxxxxxxxxxx
https://lists.ntp.isc.org/mailman/listinfo/questions

.



Relevant Pages

  • Re: Dial up connection under Debian (and chrony)
    ... > If I issue sudo tzconfig it outputs: ... > Your current time zone is set to Europe/Rome ... Is the hardware clock on your PC set to UTC or local time? ...
    (Debian-User)
  • Re: Clock skew problem - RHEL 4 AS
    ... Syed Johnullah wrote: ... I don't have problem in other servers in which 32 bit RHEL 4 ES ... The accuracy of the hardware clock is determined by the quality of its timebase oscillator. ...
    (RedHat)
  • Re: Question about DST changes in the US
    ... if you only care about local time in one location. ... hardware clock set to UTC, but Windows users typically set it to localtime ... The problem with this is that you need to adjust the hardware clock ...
    (Fedora)
  • Re: Double summer time?
    ... Is it set to your local time or to UTC? ... that this is a silly question to ask during installation. ... The user decides what time to set the hardware clock to. ...
    (Fedora)
  • Re: Date/Time setting
    ... Both Windows and Linux use UTC for timestamps. ... difference is, in Windows you set the hardware clock to your local time, ...
    (Fedora)