From 9969d7437fa6786782e6c780fbadd6561220ccfe Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 19 Apr 2021 11:26:23 +0000 Subject: Clean up the wtmp mess --- doc/overview.html | 4 ++-- doc/s6-linux-init-maker.html | 25 +++++++++++++++++-------- 2 files changed, 19 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/overview.html b/doc/overview.html index 71b852d..ef01e1e 100644 --- a/doc/overview.html +++ b/doc/overview.html @@ -129,8 +129,8 @@ command is executed. utmp record cleanup duty for patched login programs.
  • s6-linux-init-early-getty: the early getty, allowing the user to login even if rc.init fails early.
  • -
  • utmpd and wtmpd: the services performing -utmp and wtmp access when utmps is +
  • utmpd: a service performing +utmp access when utmps is used.
  • diff --git a/doc/s6-linux-init-maker.html b/doc/s6-linux-init-maker.html index f8ef940..9bf44ac 100644 --- a/doc/s6-linux-init-maker.html +++ b/doc/s6-linux-init-maker.html @@ -320,9 +320,15 @@ files in a staging directory.
    available when the s6-linux-init package has been built with the --enable-utmps configure option, that enables support for the utmps package. The option -defines the user that the utmpd and wtmpd services -will run as, and activates these services. Default is no -utmpd or wtmpd services.
    +defines the user that the utmpd service +will run as, and activates this service. (Note that you will still +have to create a wtmpd service yourself and activate it +later in the boot sequence, after a writable filesystem is mounted, +because the wtmp database is supposed to be persistent and should live +on a real filesystem. +s6-linux-init cannot do that for you, because it only handles the +early part of the boot sequence, before filesystems are mounted.) +Default is no utmpd service.
  • -C : create a set of scripts that is suitable for running in a container. This modifies some behaviours: @@ -457,11 +463,14 @@ directories may exist: +that is the location where the utmp files will be created.
  • +
  • An additional early service named utmpd, which is +a part of the utmps way of +providing secure utmp functionality. A similar wtmpd service +should also be created and run later in the boot sequence by the +service manager; it is not s6-linux-init's job to do it because +wtmp requires a real, writable filesystem.
  • +1

    Notes

    -- cgit v1.3.1