]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/manager: add dbus API to create auxiliary scope from running service
authorMichal Sekletar <msekleta@redhat.com>
Mon, 30 Oct 2023 11:08:59 +0000 (12:08 +0100)
committerMichal Sekletar <msekleta@redhat.com>
Wed, 3 Jan 2024 12:50:41 +0000 (13:50 +0100)
commit84c01612de805d88875d4d91cfcf73cf10f99447
treef7547e018a170b22874c0d456b66b60d4d4611f1
parent04d4086c228afc907fc1b70fcef892d651f7c0cc
core/manager: add dbus API to create auxiliary scope from running service

This commit introduces new D-Bus API, StartAuxiliaryScope(). It may be
used by services as part of the restart procedure. Service sends an
array of PID file descriptors corresponding to processes that are part
of the service and must continue running also after service restarts,
i.e. they haven't finished the job why they were spawned in the first
place (e.g. long running video transcoding job). Systemd creates new
scope unit for these processes and migrates them into it. Cgroup
properties of scope are copied from the service so it retains same
cgroup settings and limits as service had.
man/org.freedesktop.systemd1.xml
src/core/cgroup.c
src/core/cgroup.h
src/core/dbus-manager.c