[systemd-devel] Why does stopping mount units kill user sessions?

Frank Steiner fsteiner-mail1 at bio.ifi.lmu.de
Mon May 22 06:37:25 UTC 2023


Lennart Poettering wrote:

> That said, I think we probably should change systemd-logind to
> implicitly and unconditionally keep an open fd to the home dir of a
> user around as long as there's at least one session of them around,
> simply to make clear that sessions keep home dirs busy. This, as side
> effect would then also mean that autofs wouldn#t be tempted to
> consider the home dir idle as long as there's a session.

Thanks a lot for your explanations, made it easy to understand why
the session must be stopped! If systemd adds such a filehandler in
the future that would be great, but for the moment we will just work
around by removing the idle-timeout. And I will ask at the autofs list
about a possible fix in their code.

Thanks!
cu,
Frank


-- 
Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *



More information about the systemd-devel mailing list