]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not GC units that have FDs stored 41435/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Apr 2026 11:11:01 +0000 (12:11 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Apr 2026 11:22:43 +0000 (12:22 +0100)
commit55327a1fd859e8c168786059242306f1a74d4153
tree79bb032547d560e37ae1b47e62d6fa2b435e17a3
parent5a20987bef4455dc66ddc370e938bccc36b712eb
core: do not GC units that have FDs stored

If a unit has FileDescriptorStorePreserve=yes we'll keep its FDs
around in case it starts again. But if there are no reverse
dependencies referencing it, we'll also GC it and lose all the FDs,
which defeats the point of the setting (which is opt-in).

Do not GC units that have FDs stored to avoid this.

Follow-up for b9c1883a9cd9b5126fe648f3e198143dc19a222d
man/systemd.service.xml
man/systemd.unit.xml
src/core/service.c