X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=fd69c6966a4f871a99b87b52ddc3eedafb1b8fcc;hb=c469089cf647ac740c7dcf09c463d2907b6d00eb;hp=c903c54e9b7ae09274595ebb05a5048ed8b5d060;hpb=cda134ab1eac84f874aacf8e885a07112a7fd5ce;p=elogind.git diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index c903c54e9..fd69c6966 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -1480,11 +1480,13 @@ static int list_dependencies_get_dependencies(sd_bus *bus, const char *name, cha "RequiresOverridable\0" "Requisite\0" "RequisiteOverridable\0" - "Wants\0", + "Wants\0" + "BindsTo\0", [DEPENDENCY_REVERSE] = "RequiredBy\0" "RequiredByOverridable\0" "WantedBy\0" - "PartOf\0", + "PartOf\0" + "BoundBy\0", [DEPENDENCY_AFTER] = "After\0", [DEPENDENCY_BEFORE] = "Before\0", }; @@ -5660,7 +5662,8 @@ static int unit_is_enabled(sd_bus *bus, char **args) { if (state == UNIT_FILE_ENABLED || state == UNIT_FILE_ENABLED_RUNTIME || - state == UNIT_FILE_STATIC) + state == UNIT_FILE_STATIC || + state == UNIT_FILE_INDIRECT) enabled = true; if (!arg_quiet) @@ -5690,9 +5693,7 @@ static int unit_is_enabled(sd_bus *bus, char **args) { if (r < 0) return bus_log_parse_error(r); - if (streq(s, "enabled") || - streq(s, "enabled-runtime") || - streq(s, "static")) + if (STR_IN_SET(s, "enabled", "enabled-runtime", "static", "indirect")) enabled = true; if (!arg_quiet)