]> git.ipfire.org Git - thirdparty/systemd.git/commit - .gitignore
core: add transient units
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Jun 2013 02:12:58 +0000 (04:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 28 Jun 2013 02:12:58 +0000 (04:12 +0200)
commitc2756a68401102786be343712c0c35acbd73d28d
tree64af93633ce57982937323c9a55fe1ecbf076cd1
parent1508e85878cff23a220b2ff8d6c71418e19797de
core: add transient units

Transient units can be created via the bus API. They are configured via
the method call parameters rather than on-disk files. They are subject
to normal GC. Transient units currently may only be created for
services (however, we will extend this), and currently only ExecStart=
and the cgroup parameters can be configured (also to be extended).

Transient units require a unique name, that previously had no
configuration file on disk.

A tool systemd-run is added that makes use of this functionality to run
arbitrary command lines as transient services:

$ systemd-run /bin/ping www.heise.de

Will cause systemd to create a new transient service and run ping in it.
21 files changed:
.gitignore
Makefile.am
TODO
src/core/dbus-cgroup.c
src/core/dbus-manager.c
src/core/dbus-service.c
src/core/dbus-unit.c
src/core/dbus-unit.h
src/core/job.c
src/core/load-fragment.c
src/core/main.c
src/core/manager.c
src/core/mount.c
src/core/service.c
src/core/transaction.c
src/core/unit.c
src/core/unit.h
src/run/Makefile [new symlink]
src/run/run.c [new file with mode: 0644]
src/shared/unit-name.c
src/shared/unit-name.h