summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-17 04:07:49 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-17 04:07:49 +0200
commit064f51fa29c1dfd7c0704feb969eb59119e57854 (patch)
tree836961939546647fcad363f1bcedc8cc631c8801 /src
parentd06428248aa80f72862b86297335ee01c31d918b (diff)
unit: consider only_by_dependency setting when clients ask whether a unit is startable
Diffstat (limited to 'src')
-rw-r--r--src/dbus-unit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dbus-unit.c b/src/dbus-unit.c
index 66b7ae8297..ce34130993 100644
--- a/src/dbus-unit.c
+++ b/src/dbus-unit.c
@@ -128,7 +128,8 @@ int bus_unit_append_can_start(Manager *m, DBusMessageIter *i, const char *proper
assert(property);
assert(u);
- b = unit_can_start(u);
+ b = unit_can_start(u) &&
+ !u->meta.only_by_dependency;
if (!dbus_message_iter_append_basic(i, DBUS_TYPE_BOOLEAN, &b))
return -ENOMEM;