From c2756a68401102786be343712c0c35acbd73d28d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 28 Jun 2013 04:12:58 +0200 Subject: 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. --- src/core/dbus-cgroup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/dbus-cgroup.c') diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index cf05f04ea..d1d35633c 100644 --- a/src/core/dbus-cgroup.c +++ b/src/core/dbus-cgroup.c @@ -323,8 +323,6 @@ int bus_cgroup_set_property( return -EINVAL; } - n++; - if (mode != UNIT_CHECK) { a = new0(CGroupDeviceAllow, 1); if (!a) @@ -343,6 +341,7 @@ int bus_cgroup_set_property( LIST_PREPEND(CGroupDeviceAllow, device_allow, c->device_allow, a); } + n++; dbus_message_iter_next(&sub); } -- cgit v1.2.3