summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-11-16 15:43:18 +0100
committerSven Eden <yamakuzure@gmx.net>2017-04-26 12:58:55 +0200
commitfe1d018e7c206a47e6d912b43017a1c056c2c4c9 (patch)
treee4c5977197167448a28ac82b92da95e457c0b72b /src
parentbc862a48dfd0c56cfdfefcf400dc92464e135a64 (diff)
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. elogind takes care of everything else.
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 29f26f2db..b9296b5e5 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -2863,7 +2863,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;