From 147e7b44467f4deb2216ab7b1c1e2b89fa544d50 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 23 Mar 2024 03:18:42 +0800 Subject: [PATCH] analyze-dot: also show BindsTo= in --require --- man/systemd-analyze.xml | 16 ++++++---------- src/analyze/analyze-dot.c | 5 +++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 639a7231cb2..ca108c5cf9d 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -1018,16 +1018,12 @@ x86-64 native - When used in conjunction with the - dot command (see above), selects which - dependencies are shown in the dependency graph. If - is passed, only dependencies of type - After= or Before= are - shown. If is passed, only - dependencies of type Requires=, - Requisite=, - Wants= and Conflicts= - are shown. If neither is passed, this shows dependencies of + When used in conjunction with the dot command (see above), + selects which dependencies are shown in the dependency graph. If is passed, + only dependencies of type After= or Before= are shown. + If is passed, only dependencies of type Requires=, + Requisite=, BindsTo=, Wants=, and + Conflicts= are shown. If neither is passed, this shows dependencies of all these types. diff --git a/src/analyze/analyze-dot.c b/src/analyze/analyze-dot.c index abb594ad0a0..9e92d59bcee 100644 --- a/src/analyze/analyze-dot.c +++ b/src/analyze/analyze-dot.c @@ -79,6 +79,10 @@ static int graph_one( if (r < 0) return r; + r = graph_one_property(bus, u, "BindsTo", "gold", patterns, from_patterns, to_patterns); + if (r < 0) + return r; + r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns); if (r < 0) return r; @@ -182,6 +186,7 @@ int verb_dot(int argc, char *argv[], void *userdata) { log_info(" Color legend: black = Requires\n" " dark blue = Requisite\n" + " gold = BindsTo\n" " dark grey = Wants\n" " red = Conflicts\n" " green = After\n"); -- 2.47.3