summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2015-12-29 14:15:04 +0900
committerWaLyong Cho <walyong.cho@samsung.com>2016-01-14 15:33:43 +0900
commit10ba4835042c9815a755f8faa774651ec3d52467 (patch)
tree18a9db9b28a8d695ea843a1a73163adb17ce1e48 /src/systemctl
parent8ec46f55e5d615696b013e6325b19af441fdd187 (diff)
bus-util: print "systemctl --user" on user service manager
When a unit was started with "systemctl --user" and it failed, error messages is printed as "systemctl status". But it should be "systemctl --user status".
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 1448d974bd..6eded5c790 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -2794,7 +2794,7 @@ static int start_unit(int argc, char *argv[], void *userdata) {
if (!arg_no_block) {
int q;
- q = bus_wait_for_jobs(w, arg_quiet);
+ q = bus_wait_for_jobs(w, arg_quiet, arg_scope != UNIT_FILE_SYSTEM ? "--user" : NULL);
if (q < 0)
return q;