]> git.ipfire.org Git - thirdparty/systemd.git/commit - TODO
core: add new "scope" unit type for making a unit of pre-existing processes
authorLennart Poettering <lennart@poettering.net>
Sun, 30 Jun 2013 22:03:57 +0000 (00:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 30 Jun 2013 22:18:00 +0000 (00:18 +0200)
commit6c12b52e19640747e96f89d85422941a23dc6b29
tree735f7aa8c36d8e30827f36e3891032a92cab6f2d
parenta00963a2e4e98c0e4ef477b63b70c5e71d65fdc1
core: add new "scope" unit type for making a unit of pre-existing processes

"Scope" units are very much like service units, however with the
difference that they are created from pre-existing processes, rather
than processes that systemd itself forks off. This means they are
generated programmatically via the bus API as transient units rather
than from static configuration read from disk. Also, they do not provide
execution-time parameters, as at the time systemd adds the processes to
the scope unit they already exist and the parameters cannot be applied
anymore.

The primary benefit of this new unit type is to create arbitrary cgroups
for worker-processes forked off an existing service.

This commit also adds a a new mode to "systemd-run" to run the specified
processes in a scope rather then a transient service.
16 files changed:
Makefile.am
TODO
src/core/dbus-scope.c [new file with mode: 0644]
src/core/dbus-scope.h [new file with mode: 0644]
src/core/scope.c [new file with mode: 0644]
src/core/scope.h [new file with mode: 0644]
src/core/service.c
src/core/slice.c
src/core/unit.c
src/core/unit.h
src/notify/notify.c
src/run/run.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h
src/shared/unit-name.c
src/shared/unit-name.h