From 1f667d8a7cff4355cd23ebebeb4d7179e3498eb8 Mon Sep 17 00:00:00 2001 From: Joerg Behrmann Date: Tue, 10 Mar 2020 16:34:13 +0100 Subject: [PATCH] docs: Add syntax for templated units to systemd.preset man page This documents the syntax enable template@.service foo bar baz that was introduced in #9901 to preset templated units. --- man/systemd.preset.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/man/systemd.preset.xml b/man/systemd.preset.xml index 795da35ec8..092c186738 100644 --- a/man/systemd.preset.xml +++ b/man/systemd.preset.xml @@ -71,7 +71,10 @@ disable followed by a space and a unit name (possibly with shell style wildcards), separated by newlines. Empty lines and lines whose first non-whitespace character is # or - ; are ignored. + ; are ignored. Multiple instance names for unit + templates may be specified as a space separated list at the end of + the line instead of the customary position between @ + and the unit suffix. Presets must refer to the "real" unit file, and not to any aliases. See systemd.unit5 @@ -123,6 +126,17 @@ disable * 99-, it will be read last and hence can easily be overridden by spin or administrator preset policy. + + Enable multiple template instances + + # /usr/lib/systemd/system-preset/80-dirsrv.preset + +enable dirsrv@.service foo bar baz + + + This enables all three of dirsrv@foo.service, + dirsrv@bar.service and dirsrv@baz.service. + A GNOME spin