]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: make sure to replace existing units
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Nov 2015 14:43:18 +0000 (15:43 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Nov 2015 14:43:18 +0000 (15:43 +0100)
When queuing unit jobs, we should rather replace existing units than
fail. This is especially important when we queued a user-shutdown and a
new login is encountered. In this case, we better raplce the shutdown
jobs. systemd takes care of everything else.

src/login/logind-dbus.c

index 7cc0044bab235c0dd8363913cb9512f18fde3797..e36217c5b2650a1563274107fe777ab44843f694 100644 (file)
@@ -2964,7 +2964,7 @@ int manager_start_unit(Manager *manager, const char *unit, sd_bus_error *error,
                         "StartUnit",
                         error,
                         &reply,
-                        "ss", unit, "fail");
+                        "ss", unit, "replace");
         if (r < 0)
                 return r;