Re: Where does systemd-logind.service store its stats (e.g. loginctl things)?
On Sat, Jul 04, 2026 at 15:50:39 +0100, Chris Green wrote:
> Greg Wooledge <greg@wooledge.org> wrote:
> > So, I would check to see whether something has been created in the
> > /etc/systemd/logind.conf.d/ directory. Failing that, I would look
> > for "[Login]" as a literal string in any file under /etc/.
>
> There's no /etc/systemd/logind.conf.d directory on my systems where I
> have I have set enable-linger. For the other:-
>
> root@tackpi:~# grep -r '\[login\]' /etc
> root@tackpi:~#
It's a capital L.
hobbit:~$ sudo grep -Fr '[Login]' /etc
[sudo] password for greg:
/etc/systemd/logind.conf:[Login]
However, it turns out that the real answer was never discoverable through
the documentation. You just had to know it by word of mouth, apparently.
Reply to: