X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd.preset.xml;h=cf807bd4c859280e65ea9a95cee9fa2c1beb5cb5;hb=9066811e5ab12367b6d87f1659b8ed98dabd554d;hp=b7164014f05264bd1507664eaa1a47dccd28d9e1;hpb=3964118f5a3bd9aae66508f84a27b95435f62228;p=thirdparty%2Fsystemd.git diff --git a/man/systemd.preset.xml b/man/systemd.preset.xml index b7164014f05..cf807bd4c85 100644 --- a/man/systemd.preset.xml +++ b/man/systemd.preset.xml @@ -2,37 +2,13 @@ systemd.preset systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -72,7 +48,7 @@ For more information on the preset logic please have a look at the Presets + url="https://www.freedesktop.org/wiki/Software/systemd/Preset">Presets document. It is not recommended to ship preset files within the @@ -98,6 +74,10 @@ Empty lines and lines whose first non-whitespace character is # or ; are ignored. + Presets must refer to the "real" unit file, and not to any aliases. See + systemd.unit5 + for a description of unit aliasing. + Two different directives are understood: enable may be used to enable units by default, disable to disable units by default. @@ -130,23 +110,26 @@ - Example + Examples - Default off example <filename>/usr/lib/systemd/system-preset/99-default.preset</filename>: + Default to off + + # /usr/lib/systemd/system-preset/99-default.preset - disable * +disable * This disables all units. Due to the filename prefix 99-, it will be read last and hence can easily - be overridden by spin or administrator preset policy or - suchlike. + be overridden by spin or administrator preset policy. - A GNOME spin example <filename>/usr/lib/systemd/system-preset/50-gnome.preset</filename>: + A GNOME spin - enable gdm.service + # /usr/lib/systemd/system-preset/50-gnome.preset + +enable gdm.service enable colord.service enable accounts-daemon.service enable avahi-daemon.* @@ -162,9 +145,11 @@ enable avahi-daemon.* example like the one from the first example above. - Administrator policy <filename>/etc/systemd/system-preset/00-lennart.preset</filename>: + Administrator policy + + # /etc/systemd/system-preset/00-lennart.preset - enable httpd.service +enable httpd.service enable sshd.service enable postfix.service disable * @@ -173,8 +158,8 @@ disable * This enables three specific services and disables all others. This is useful for administrators to specifically select the units to enable, and disable all others. Due to the filename - prefix 00- it will be read early and hence - overrides all other preset policy files. + prefix 00- it will be read early and + override all other preset policy files.