supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: "cpt.arsemerica@yahoo.com" <cpt.arsemerica@yahoo.com>,
	"supervision@list.skarnet.org" <supervision@list.skarnet.org>
Subject: Re: [svlogd] / -ttt / why UTC?
Date: Thu, 06 Apr 2023 11:02:53 +0000	[thread overview]
Message-ID: <em849e5c8a-51be-4210-b18e-2ff0a4fa7646@cdceff30.com> (raw)
In-Reply-To: <1799590563.259018.1680775861585@mail.yahoo.com>

>My boxes use TAI (international atomic time) in order to have SI-seconds and 60sec minutes and 24hrs days...

  If your system clock is set to TAI-10, then *all* the time-handling
software on your machine must be aware of it, in order to perform
time computations accurately. It is not sufficient to use the right/
time zones: a TAI-10 setup changes the interpretation of what
system calls such as time() and clock_gettime() return. It is only
possible to do this and have a consistent view of time if you control
any and every piece of software on your machine that needs to read
and display time.

  See https://skarnet.org/software/skalibs/flags.html#clockistai
for a description of the difference between "system clock set to TAI-10"
and "system clock set to UTC".

  If you're using a distribution - in your case, Void Linux - then
TAI-10 is not an option for you, unless the distribution explicitly
supports it and has built all its binaries to support it. Even if you
could make svlogd work with it, you would have trouble with other
software - this may be benign, like "date", or less so, like software
that checks the validity of X.509 certificates against certain things
like expiration dates.

  Believe me, I understand your plight, and I wish TAI-10 were the de
facto standard instead of UTC. I wish it were at least more widely
known and supported. I use it on my servers - but it comes at a heavy
price: not letting any third-party software, 99.9% of which is hardcoded
for UTC, interact with time, and only using my own tools, which support
the setup, to do that.

  I don't think you'll be able to keep running Void with a full TAI-10
setup and have everything work perfectly, at some point you'll have to
make a real choice. But right now, to superficially solve your current
issue, you could try running s6-log (from s6) in place of svlogd.
It does the same thing, but it supports TAI-10, if you build skalibs
with the --enable-tai-clock option, as described by the link above.
You probably have to build skalibs and s6 yourself: I don't think the
Void package for skalibs uses that option.

  Good luck,

--
  Laurent


  reply	other threads:[~2023-04-06 11:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1799590563.259018.1680775861585.ref@mail.yahoo.com>
2023-04-06 10:11 ` cpt.arsemerica.yahoo.com via supervision
2023-04-06 11:02   ` Laurent Bercot [this message]
2023-04-06 12:47     ` cpt.arsemerica.yahoo.com via supervision
2023-04-06 18:12       ` Laurent Bercot
2023-04-06 20:37         ` cpt.arsemerica.yahoo.com via supervision
2023-04-09  6:11           ` Jonathan de Boyne Pollard
2023-04-06 23:21         ` Alexis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=em849e5c8a-51be-4210-b18e-2ff0a4fa7646@cdceff30.com \
    --to=ska-supervision@skarnet.org \
    --cc=cpt.arsemerica@yahoo.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).