]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: automatically GC lingering users for who now user@.service (nor slice, not...
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Aug 2018 14:04:40 +0000 (16:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Oct 2018 10:59:29 +0000 (12:59 +0200)
commit4e5b605af202c770dfc8e3562d0f8d0440b2fe14
tree00af5be2843ed033e653c0f3eedaf0d6ab288407
parent6996df9b864981980f5b713dc5c7d506a7a4b9bf
logind: automatically GC lingering users for who now user@.service (nor slice, not runtime dir service) is running anymore

This heavily borrows from @intelfx' PR #5546, but watches all three
units that are associated with a user now: the slice, the user@.service
and user-runtime-dir@.service.

The logic and reasoning behind it is the same though: there's no value
in keeping lingering users around if all their three services are gone.

Replaces: #5546
Fixes: #4162
src/login/logind-user.c