]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: add --job-mode= argument 34708/head
authorGavin Li <gavin.li@samsara.com>
Thu, 10 Oct 2024 20:07:16 +0000 (16:07 -0400)
committerGavin Li <gavinli@thegavinli.com>
Thu, 23 Jan 2025 07:08:32 +0000 (02:08 -0500)
commit706a953504b6ea6f5bcf233a747d73a7cc868b4a
treebf76d4faff526fe36260aac4315a634f7ce4dd97
parentb9a08e8cc54e273e5a433e5df15e0025ab6ef848
run: add --job-mode= argument

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.
man/systemd-run.xml
shell-completion/bash/systemd-run
shell-completion/zsh/_systemd-run
src/run/run.c
test/units/TEST-74-AUX-UTILS.run.sh