]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/service: destroy runtime data when Type=oneshot services exit 33443/head
authorMike Yuan <me@yhndnzj.com>
Sat, 22 Jun 2024 10:03:50 +0000 (12:03 +0200)
committerLuca Boccassi <bluca@debian.org>
Sun, 21 Jul 2024 11:43:51 +0000 (12:43 +0100)
commitc26948c6dae1d2ca13499b36f193b13a0760834c
tree607149afbe8d781fa4fd2ce6530b0fa6a0418195
parent8b17371b6185c9829bb21a813aadb2225ccfc4de
core/service: destroy runtime data when Type=oneshot services exit

Currently, we have a bunch of Type=oneshot + RemainAfterExit=yes
services that make use of credentials. When those exits, the cred mounts
remain established, which is pointless and quite annoying. Let's
instead destroy the runtime data on SERVICE_EXITED, if no process
will be spawned for the unit again.
src/core/service.c