]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add method to enqueue multiple jobs in a single call (#42182)
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jun 2026 20:35:17 +0000 (21:35 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2026 20:35:17 +0000 (21:35 +0100)
commit32a162dbb9df34368458bbdc830b8400ecdf4eaf
tree19ec6a4727032be70938f4e3ee2d390330cb1200
parent294458fd00a483788c6d9b4aa3a8684d3599ca35
parent7034441827e71abc63e2476286c53f3feb05473b
core: add method to enqueue multiple jobs in a single call (#42182)

Currently only a single job for a single unit can be enqueued
atomically,
so there is no guarantee that, e.g., starting a unit and its socket
at the same time will happen in the same transaction. That forces
callers to 'know' the right order in which to start new units being
installed, or failures will occur. It also means some ordering
constraints are ignored, in case the separate calls are done
in the wrong manual order.

Add a new EnqueueUnitJobMany() D-Bus method that takes a list of units
to start.
man/systemctl.xml
src/core/manager.c
src/core/manager.h