Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270547

Re: How to use /etc/adjtime

From John Hasler <john@sugarbit.com>
Newsgroups linux.debian.user
Subject Re: How to use /etc/adjtime
Date 2024-06-28 18:20 +0200
Message-ID <IUmul-6f7l-3@gated-at.bofh.it> (permalink)
References (1 earlier) <IU9x7-679N-1@gated-at.bofh.it> <IUk9b-6dzT-1@gated-at.bofh.it> <IUksx-6dVD-3@gated-at.bofh.it> <IUl5f-6e8I-1@gated-at.bofh.it> <IUloB-6euN-5@gated-at.bofh.it>
Organization Dancing Horse Hill

Show all headers | View raw


David writes:
> It's not clear to me which NTP (protocol) packages are set up to use
> the util-linux stuff, assuming you're not rolling your own
> startup/shutdown scripts. (That's the problem in the Subject line, in
> a sense.)

Chrony can.  I don't know about Ntpsec.  But that doesn't get the
adjustment made early enough.

> The critical part of the whole operation AIUI is not what happens at
> startup,

The tricky part, I think, is correcting the rtc before it is used to
initialize the system time.  Otherwise you'll still have to step or slew
the system time.

> but at shutdown: writing to the RTC, and the correct preservation of
> its state.

You write to the rtc and to /etc/adjtime periodically at a rate
determined by the computed hot drift rate and also during a controlled
shutdown.
-- 
John Hasler 
john@sugarbit.com
Elmwood, WI USA

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-27 18:50 +0200
  Re: How to use /etc/adjtime <tomas@tuxteam.de> - 2024-06-27 19:10 +0200
    Re: How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-28 15:50 +0200
  Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-28 04:30 +0200
    Re: How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-28 15:50 +0200
      Re: How to use /etc/adjtime Greg Wooledge <greg@wooledge.org> - 2024-06-28 16:10 +0200
        Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-28 16:40 +0200
        Re: How to use /etc/adjtime John Hasler <john@sugarbit.com> - 2024-06-28 16:50 +0200
          Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-28 17:10 +0200
            Re: How to use /etc/adjtime John Hasler <john@sugarbit.com> - 2024-06-28 18:20 +0200
              Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-28 21:10 +0200
                Re: How to use /etc/adjtime John Hasler <john@sugarbit.com> - 2024-06-28 22:10 +0200
                Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-30 06:50 +0200
                Re: How to use /etc/adjtime <tomas@tuxteam.de> - 2024-06-29 07:00 +0200
                Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-30 06:50 +0200
          Re: How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-28 20:50 +0200
            Re: How to use /etc/adjtime Max Nikulin <manikulin@gmail.com> - 2024-06-29 03:30 +0200
        Re: How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-28 20:40 +0200
          Re: How to use /etc/adjtime Greg Wooledge <greg@wooledge.org> - 2024-06-28 21:00 +0200
            Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-28 21:50 +0200
            Re: How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-28 22:00 +0200
              Re: How to use /etc/adjtime Greg Wooledge <greg@wooledge.org> - 2024-06-28 22:30 +0200
                Re: How to use /etc/adjtime Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-28 23:10 +0200
                Re: How to use /etc/adjtime David Wright <deblis@lionunicorn.co.uk> - 2024-06-29 02:10 +0200
  Re: How to use /etc/adjtime Charles Curley <charlescurley@charlescurley.com> - 2024-06-29 06:00 +0200
    Re: How to use /etc/adjtime Charles Curley <charlescurley@charlescurley.com> - 2024-06-29 18:50 +0200

csiph-web