summaryrefslogtreecommitdiff
path: root/src/machine/machined-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 12:48:51 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 12:51:07 +0200
commit206e7a5f7b55ac61188efd895e65ab26e478cbb2 (patch)
treee67415e2fd5fd8aa281548200cc5fd327c1e3b97 /src/machine/machined-dbus.c
parent37520c1bec9a92adbe02fceaece588a7aa2fea2b (diff)
machined: don't force terminate registered machines
When a machine is registered in machined with CreateMachine it is OK to kill the machine when it is terminated, but when an existing unit is simply registered via RegisterMachine we shouldn't do that, as the unit is controlled by somebody else.
Diffstat (limited to 'src/machine/machined-dbus.c')
-rw-r--r--src/machine/machined-dbus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c
index 6f8ba474fa..7c1802ce2a 100644
--- a/src/machine/machined-dbus.c
+++ b/src/machine/machined-dbus.c
@@ -223,6 +223,7 @@ static int method_create_or_register_machine(Manager *manager, sd_bus_message *m
m->leader = leader;
m->class = c;
m->id = id;
+ m->registered = true;
if (!isempty(service)) {
m->service = strdup(service);