|
|
8d419f |
From 3e2830ddce4474efb403914e910de2943a2a6bd0 Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: Max Gautier <mg@max.gautier.name>
|
|
|
8d419f |
Date: Sun, 13 Feb 2022 15:16:05 +0100
|
|
|
8d419f |
Subject: [PATCH] docs: Correct WantedBy= regarding template units
|
|
|
8d419f |
|
|
|
8d419f |
(cherry picked from commit f55fe53ffce351bb55b6190cf36511c37f99d766)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2082131
|
|
|
8d419f |
---
|
|
|
8d419f |
man/systemd.unit.xml | 6 +++---
|
|
|
8d419f |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
|
|
|
8d419f |
index 4ba602b5ad..2e6261c1ed 100644
|
|
|
8d419f |
--- a/man/systemd.unit.xml
|
|
|
8d419f |
+++ b/man/systemd.unit.xml
|
|
|
8d419f |
@@ -1922,9 +1922,9 @@
|
|
|
8d419f |
<para><command>WantedBy=foo.service</command> in a service
|
|
|
8d419f |
<filename>bar.service</filename> is mostly equivalent to
|
|
|
8d419f |
<command>Alias=foo.service.wants/bar.service</command> in the
|
|
|
8d419f |
- same file. In case of template units, <command>systemctl
|
|
|
8d419f |
- enable</command> must be called with an instance name, and
|
|
|
8d419f |
- this instance will be added to the
|
|
|
8d419f |
+ same file. In case of template units listing non template units,
|
|
|
8d419f |
+ <command>systemctl enable</command> must be called with an
|
|
|
8d419f |
+ instance name, and this instance will be added to the
|
|
|
8d419f |
<filename>.wants/</filename> or
|
|
|
8d419f |
<filename>.requires/</filename> list of the listed unit. E.g.
|
|
|
8d419f |
<command>WantedBy=getty.target</command> in a service
|