]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/service: preserve RuntimeDirectory= even if oneshot service exits
authorMike Yuan <me@yhndnzj.com>
Sat, 30 Nov 2024 17:04:52 +0000 (18:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Dec 2024 09:57:45 +0000 (10:57 +0100)
commit703b1b7f243f0faabfcc4968712d8beb65a951a8
tree05b829df8c0b0dfbd56326477bb10c6f0b94f5cd
parentd5df77b474e7a51796521d289a781d3ed2f32f48
core/service: preserve RuntimeDirectory= even if oneshot service exits

Follow-up for c26948c6dae1d2ca13499b36f193b13a0760834c

We only want to get rid of cred mount here, and RuntimeDirectory=
is documented to be retained for SERVICE_EXITED state.

Fixes #35427
src/core/mount.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/core/unit.c
src/core/unit.h
test/units/TEST-23-UNIT-FILE.RuntimeDirectory.sh [moved from test/units/TEST-23-UNIT-FILE.RuntimeDirectoryPreserve.sh with 56% similarity]