Commit 064f51fa authored by Lennart Poettering's avatar Lennart Poettering

unit: consider only_by_dependency setting when clients ask whether a unit is startable

parent d0642824
......@@ -55,7 +55,7 @@
* maintenance muss dokumentiert werden
* fingerprint.target, smartcard.target, wireless.target, gps.target
* fingerprint.target, wireless.target, gps.target
External:
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment