]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/service: imply Type=exec if credentials are used 32612/head
authorMike Yuan <me@yhndnzj.com>
Wed, 1 May 2024 13:26:33 +0000 (21:26 +0800)
committerLuca Boccassi <bluca@debian.org>
Sun, 21 Jul 2024 18:10:58 +0000 (19:10 +0100)
commit757e469d2629336a9cce2a4f18208578d39260d6
tree16658eec1079e7410575a21a6aa20e5315d80ee3
parent60b218e36e96236e6ba386686f130fe34d3e1c2a
core/service: imply Type=exec if credentials are used

When credentials are used with Type=simple + ExecStartPost=,
i.e. when multiple sd-executor instances are running in parallel
for a single service, the state of final credential dir
might be unexpected wrt path_is_mount_point() and other
steps. So, let's imply Type=exec if not explicitly specified,
and emit a warning otherwise.
man/systemd.service.xml
src/core/service.c