]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add FileDescriptorStorePreserve=on-success option (#42160)
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 21 May 2026 11:08:33 +0000 (12:08 +0100)
committerGitHub <noreply@github.com>
Thu, 21 May 2026 11:08:33 +0000 (12:08 +0100)
commit20615d2d47a8526237da03390cfae3c657a7db72
tree2279027684de850959be8cf3d1300d8273c15ef7
parent05a4f7755aa53e67c870c6b441d896c2bbf8fd93
parent67dea1409b7083b6fa78d7adb752d13ce3e0909b
core: add FileDescriptorStorePreserve=on-success option (#42160)

Currently with FileDescriptorStorePreserve=yes the FD store is kept
around
regardless of what happens to a unit, which is useful in many cases. But
in
some cases, for example when complex services crash horribly, it's hard
to
reason about what was in the intermediate state, and it's better to
start
fresh.

Add a new 'on-success' option for the FileDescriptorStorePreserve=
setting
that keeps it around only for as long as the unit doesn't go to a
persistently
failed state.

This is especially useful in combination with LUO, where we don't want
to
keep around LUO sessions created by units that then proceeded to crash
and
burn, and might be in a bad state afterwards.