On Tue, Apr 01, 2025 at 15:03:34 -0600, Charles Curley wrote:
> On Tue, 1 Apr 2025 15:19:48 -0400
> Michael Stone <mst...@debian.org> wrote:
> 
> > If you touch /run/utmp it will magically start working again.
> 
> Thank you.
> 
> To be pedantic, any logins subsequent to touching it will show up. It
> is necessary to touch it after a reboot. So a nice workaround.

It should be possible to create this file as part of the boot sequence,
before user logins are even allowed, yes?  If nothing else, you could
create an rc.local file (don't forget +x).  But I think systemd also
has some sort of mechanism for creating files at boot time.

See:
  systemd-tmpfiles(8)
  tmpfiles.d(5)

Of course it's more complex than creating an rc.local file, but take
your pick.

Reply via email to