From: Lennart Poettering Date: Sat, 17 Jul 2010 02:07:49 +0000 (+0200) Subject: unit: consider only_by_dependency setting when clients ask whether a unit is startable X-Git-Tag: v4~34 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064f51fa29c1dfd7c0704feb969eb59119e57854;p=systemd unit: consider only_by_dependency setting when clients ask whether a unit is startable --- diff --git a/fixme b/fixme index 048ea214..8e769a28 100644 --- 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: diff --git a/src/dbus-unit.c b/src/dbus-unit.c index 66b7ae82..ce341309 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;