]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: support CollectMode in Varlink StartTransient
authorTim Culverhouse <tim@timculverhouse.com>
Sat, 18 Jul 2026 00:42:37 +0000 (00:42 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Jul 2026 06:35:28 +0000 (15:35 +0900)
commit4517e7e4d9ee00dc1ae90888f101a2cfbcd73ff8
tree3ba165b51f4e306f8349ca212a468499c4f21efd
parente09402326c3de3b1c8a7fe1ee58119522e099ded
core: support CollectMode in Varlink StartTransient

The io.systemd.Unit context exposes CollectMode, but StartTransient
rejects it as unsupported. This prevents Varlink clients from selecting
whether failed transient units should be garbage-collected.

Accept CollectMode when creating transient units and persist the setting
in the runtime unit configuration. Extend the integration test to verify
the value in both the Varlink response and the resulting unit.
src/core/varlink-unit.c
src/shared/varlink-io.systemd.Unit.c
test/units/TEST-74-AUX-UTILS.varlinkctl-unit.sh