From: Lennart Poettering Date: Thu, 28 Oct 2021 08:45:02 +0000 (+0200) Subject: man: clarify the situation of unit templates regarding "systemctl list-units" + ... X-Git-Tag: v250-rc1~395^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ea5e82f6ac78704f1554be9040b84bac75c2ec1;p=thirdparty%2Fsystemd.git man: clarify the situation of unit templates regarding "systemctl list-units" + "systemctl list-unit-files" Fixes: #21075 --- diff --git a/man/systemctl.xml b/man/systemctl.xml index 5a133dea75b..b6be21ed877 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -65,6 +65,13 @@ that are shown are additionally filtered by and if those options are specified. + Note that this command does not show unit templates, but only instances of unit + templates. Units templates that aren't instantiated are not runnable, and will thus never show up + in the output of this command. Specifically this means that foo@.service + will never be shown in this list — unless instantiated, e.g. as + foo@bar.service. Use list-unit-files (see below) for + listing installed unit template files. + Produces output similar to UNIT LOAD ACTIVE SUB DESCRIPTION sys-module-fuse.device loaded active plugged /sys/module/fuse @@ -81,11 +88,11 @@ ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 123 loaded units listed. Pass --all to see loaded but inactive units, too. -To show all installed unit files use 'systemctl list-unit-files'. - - The header and the last unit of a given type are underlined if the - terminal supports that. A colored dot is shown next to services which - were masked, not found, or otherwise failed. +To show all installed unit files use 'systemctl list-unit-files'. + + The header and the last unit of a given type are underlined if the terminal supports + that. A colored dot is shown next to services which were masked, not found, or otherwise + failed. The LOAD column shows the load state, one of loaded, not-found, bad-setting, error, @@ -694,10 +701,13 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err list-unit-files PATTERN… - List unit files installed on the system, in combination with their enablement state (as reported by - is-enabled). If one or more PATTERNs are specified, only unit - files whose name matches one of them are shown (patterns matching unit file system paths are not - supported). + List unit files installed on the system, in combination with their enablement state (as + reported by is-enabled). If one or more PATTERNs + are specified, only unit files whose name matches one of them are shown (patterns matching unit + file system paths are not supported). + + Unlike list-units this command will list template units in addition to + explicitly instantiated units.