]> err.no Git - systemd/commitdiff
unit: consider only_by_dependency setting when clients ask whether a unit is startable
authorLennart Poettering <lennart@poettering.net>
Sat, 17 Jul 2010 02:07:49 +0000 (04:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 17 Jul 2010 02:07:49 +0000 (04:07 +0200)
fixme
src/dbus-unit.c

diff --git a/fixme b/fixme
index 048ea214059b12ca4017f567d42174bdae88520c..8e769a28f12f685a0ddd37e6021fee7a0cecce8d 100644 (file)
--- a/fixme
+++ b/fixme
@@ -55,7 +55,7 @@
 
 * maintenance muss dokumentiert werden
 
-* fingerprint.target, smartcard.target, wireless.target, gps.target
+* fingerprint.target, wireless.target, gps.target
 
 External:
 
index 66b7ae829757edc24800d9e04d7ddbd9f077f8d6..ce34130993872bf018316a1d7003e45724e4a03e 100644 (file)
@@ -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;