run: make --slice= work in conjunction with --scope
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Apr 2016 15:31:40 +0000 (17:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Apr 2016 15:31:40 +0000 (17:31 +0200)
Fixes: #2991

src/run/run.c

index 1993a42..ff94ac7 100644 (file)
@@ -620,6 +620,10 @@ static int transient_scope_set_properties(sd_bus_message *m) {
         if (r < 0)
                 return r;
 
+        r = transient_cgroup_set_properties(m);
+        if (r < 0)
+                return r;
+
         r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, (uint32_t) getpid());
         if (r < 0)
                 return r;