]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
run: add --job-mode= argument (#34708)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Jan 2025 09:11:30 +0000 (18:11 +0900)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2025 09:11:30 +0000 (18:11 +0900)
systemctl has a --job-mode= argument, and adding the same argument to
systemd-run is useful for starting transient scopes with dependencies.
For example, if a transient scope BindsTo a service that is stopping,
specifying --job-mode=replace will wait for the service to stop before
starting it again, while the default job mode of "fail" will cause the
systemd-run invocation to fail.

1  2 
src/core/job.c
test/units/TEST-74-AUX-UTILS.run.sh

diff --cc src/core/job.c
Simple merge
Simple merge