From: David Herrmann Date: Mon, 16 Nov 2015 14:43:18 +0000 (+0100) Subject: login: make sure to replace existing units X-Git-Tag: v228~13^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79ee4ad108adc55c44891dc0058568d1068f311e;p=thirdparty%2Fsystemd.git login: make sure to replace existing units 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. --- diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 7cc0044bab2..e36217c5b26 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -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;