diff options
-rw-r--r-- | src/machine/machined-dbus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index ffcd7c026a..a041444b73 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -223,7 +223,6 @@ 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); @@ -291,6 +290,8 @@ static int method_register_machine(sd_bus *bus, sd_bus_message *message, void *u goto fail; } + m->registered = true; + r = machine_start(m, NULL, error); if (r < 0) goto fail; |