Re: Where does systemd-logind.service store its stats (e.g. loginctl things)?
On Sat, Jul 04, 2026 at 14:53:10 +0000, Andy Smith wrote:
> Hi,
>
> On Sat, Jul 04, 2026 at 12:49:40PM +0100, Chris Green wrote:
> > in particular when I run 'loginctl enaable-linger chris' where is the
> > required flag set?
>
> It's stored as a zero byte file in /var/lib/systemd/linger/.
This isn't in any of the man pages as far as I can see.
hobbit:/usr/share/man$ zgrep systemd/linger man1/*
hobbit:/usr/share/man$ zgrep systemd/linger man5/*
hobbit:/usr/share/man$ zgrep systemd/linger man7/*
hobbit:/usr/share/man$
zgrepping for just "linger" led me to systemd-run(1) which talks about
lingering as a concept, and says that users "can enable lingering for
themselves" by running loginctl enable-linger. Nowhere does it say what
that command actually *does*, file-system-wise.
Reply to: