From 8e0995193ba99360da17d836723ec8b4eeb19ad0 Mon Sep 17 00:00:00 2001 From: DagiCheck24 Date: Thu, 16 Oct 2025 20:17:26 +0200 Subject: [PATCH 1/9] Add page systemctl list-dependencies Adds to #17684 Adds documentation for systemctl list-dependencies command. --- linux/systemctl-list-dependencies | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linux/systemctl-list-dependencies diff --git a/linux/systemctl-list-dependencies b/linux/systemctl-list-dependencies new file mode 100644 index 00000000000000..86d039ea658eb9 --- /dev/null +++ b/linux/systemctl-list-dependencies @@ -0,0 +1,27 @@ +# systemctl list-dependencies + +> Show a unit's dependency tree in systemd. +> See also: `systemctl list-units` to list loaded units. +> More information: . + +- Show the dependency tree of a unit (defaults to `default.target` if omitted): + +`systemctl list-dependencies {{unit}}` + +- Include all dependency types (not only `Requires=` and `Wants=`): + +`systemctl list-dependencies {{unit}} --all` + +- Limit the tree to a specific unit type: + +`systemctl list-dependencies {{unit}} --type {{service|socket|target|mount|...}}` + +- Reverse the direction to show units that depend on the specified unit: + +`systemctl list-dependencies {{unit}} --reverse` + +- Print output without headers or footers (for scripts): + +`systemctl list-dependencies {{unit}} --no-legend` + + From 5683ebb374f96447e0ad9aa3fd152925288ed283 Mon Sep 17 00:00:00 2001 From: DagiCheck24 Date: Thu, 16 Oct 2025 20:18:20 +0200 Subject: [PATCH 2/9] Rename systemctl-list-dependencies to systemctl-list-dependencies.md --- ...systemctl-list-dependencies => systemctl-list-dependencies.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename linux/{systemctl-list-dependencies => systemctl-list-dependencies.md} (100%) diff --git a/linux/systemctl-list-dependencies b/linux/systemctl-list-dependencies.md similarity index 100% rename from linux/systemctl-list-dependencies rename to linux/systemctl-list-dependencies.md From 121de04edbd8ed8dba23ae027a1f3c4f7e2421c6 Mon Sep 17 00:00:00 2001 From: DagiCheck24 Date: Fri, 17 Oct 2025 11:31:53 +0200 Subject: [PATCH 3/9] Update linux/systemctl-list-dependencies.md: fix parameter Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- linux/systemctl-list-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/systemctl-list-dependencies.md b/linux/systemctl-list-dependencies.md index 86d039ea658eb9..7d92012bc499cf 100644 --- a/linux/systemctl-list-dependencies.md +++ b/linux/systemctl-list-dependencies.md @@ -10,7 +10,7 @@ - Include all dependency types (not only `Requires=` and `Wants=`): -`systemctl list-dependencies {{unit}} --all` +`systemctl list-dependencies {{unit}} {{[-a|--all]}}` - Limit the tree to a specific unit type: From e5f6c3d9fc25b4aafce2f85142ec0d9026a30936 Mon Sep 17 00:00:00 2001 From: DagiCheck24 Date: Fri, 17 Oct 2025 11:32:07 +0200 Subject: [PATCH 4/9] Update linux/systemctl-list-dependencies.md: fix parameter Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- linux/systemctl-list-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/systemctl-list-dependencies.md b/linux/systemctl-list-dependencies.md index 7d92012bc499cf..3d82942d46d609 100644 --- a/linux/systemctl-list-dependencies.md +++ b/linux/systemctl-list-dependencies.md @@ -14,7 +14,7 @@ - Limit the tree to a specific unit type: -`systemctl list-dependencies {{unit}} --type {{service|socket|target|mount|...}}` +`systemctl list-dependencies {{unit}} {{[-t|--type]}} {{service|socket|target|mount|...}}` - Reverse the direction to show units that depend on the specified unit: From 0d11768001e0163bd3a383546cb7c1a615e6e012 Mon Sep 17 00:00:00 2001 From: DagiCheck24 Date: Fri, 17 Oct 2025 11:44:59 +0200 Subject: [PATCH 5/9] Update documentation for systemctl list-dependencies: Split command Split command to show default and parameterized usage --- linux/systemctl-list-dependencies.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux/systemctl-list-dependencies.md b/linux/systemctl-list-dependencies.md index 3d82942d46d609..51b5fdb9d7b359 100644 --- a/linux/systemctl-list-dependencies.md +++ b/linux/systemctl-list-dependencies.md @@ -4,7 +4,11 @@ > See also: `systemctl list-units` to list loaded units. > More information: . -- Show the dependency tree of a unit (defaults to `default.target` if omitted): +- Show the dependency tree of default.target: + +`systemctl list-dependencies` + +- Show the dependency tree of a specific unit: `systemctl list-dependencies {{unit}}` From 747652fcd19cc7543a8f2812700a85fe871ba6ab Mon Sep 17 00:00:00 2001 From: DagiCheck24 Date: Fri, 17 Oct 2025 11:48:39 +0200 Subject: [PATCH 6/9] Update linux/systemctl-list-dependencies.md: add backticks Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- linux/systemctl-list-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/systemctl-list-dependencies.md b/linux/systemctl-list-dependencies.md index 51b5fdb9d7b359..a8ca677b77ff91 100644 --- a/linux/systemctl-list-dependencies.md +++ b/linux/systemctl-list-dependencies.md @@ -4,7 +4,7 @@ > See also: `systemctl list-units` to list loaded units. > More information: . -- Show the dependency tree of default.target: +- Show the dependency tree of `default.target`: `systemctl list-dependencies` From 523a362589548626f3094f79b699dd0e1047e61c Mon Sep 17 00:00:00 2001 From: "natalie.schmalz" Date: Fri, 17 Oct 2025 11:57:26 +0200 Subject: [PATCH 7/9] Update systemctl-list-dependencies: move to right directory --- {linux => pages/linux}/systemctl-list-dependencies.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {linux => pages/linux}/systemctl-list-dependencies.md (100%) diff --git a/linux/systemctl-list-dependencies.md b/pages/linux/systemctl-list-dependencies.md similarity index 100% rename from linux/systemctl-list-dependencies.md rename to pages/linux/systemctl-list-dependencies.md From d78c58cd862b61d7090d6bc6e9c8dc83ed26ca8f Mon Sep 17 00:00:00 2001 From: "natalie.schmalz" Date: Fri, 17 Oct 2025 13:00:05 +0200 Subject: [PATCH 8/9] remove trailing whitespaces --- pages/linux/systemctl-list-dependencies.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/linux/systemctl-list-dependencies.md b/pages/linux/systemctl-list-dependencies.md index a8ca677b77ff91..f73c2225659f07 100644 --- a/pages/linux/systemctl-list-dependencies.md +++ b/pages/linux/systemctl-list-dependencies.md @@ -27,5 +27,3 @@ - Print output without headers or footers (for scripts): `systemctl list-dependencies {{unit}} --no-legend` - - From 2a7de7e1ba8fa062f08b6589d4563788553cbae8 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Mon, 20 Oct 2025 07:36:55 +0200 Subject: [PATCH 9/9] Update systemctl-list-dependencies.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/linux/systemctl-list-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/systemctl-list-dependencies.md b/pages/linux/systemctl-list-dependencies.md index f73c2225659f07..b8c0c35cc17bbc 100644 --- a/pages/linux/systemctl-list-dependencies.md +++ b/pages/linux/systemctl-list-dependencies.md @@ -2,7 +2,7 @@ > Show a unit's dependency tree in systemd. > See also: `systemctl list-units` to list loaded units. -> More information: . +> More information: . - Show the dependency tree of `default.target`: