diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-06-16 19:49:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-06-17 02:43:17 +0200 |
commit | d309c1c36426f9a355e28e3c35153281939aeea6 (patch) | |
tree | 74f4042dad40df25503f1b8c00e2cf3ce2f89cf6 /man/systemctl.xml | |
parent | bcafe923a74e702abbba3655b0270febe143499f (diff) |
install: beef up preset logic to limit to only enable or only disable, and do all-unit preset operations
The new "systemctl preset-all" command may now be used to put all
installed units back into the enable/disable state the vendor/admin
encoded in preset files.
Also, introduce "systemctl --preset-mode=enable-only" and "systemctl
--preset-mode=disable-only" to only apply the enable or only the disable
operations of a "systemctl preset" or "systemctl preset-all" operation.
"systemctl preset-all" implements this RFE:
https://bugzilla.redhat.com/show_bug.cgi?id=630174
Diffstat (limited to 'man/systemctl.xml')
-rw-r--r-- | man/systemctl.xml | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/man/systemctl.xml b/man/systemctl.xml index e971b3422a..b388eb312e 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -477,6 +477,20 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. </varlistentry> <varlistentry> + <term><option>--preset-mode=</option></term> + + <listitem> + <para>Takes one of <literal>full</literal> (the default), + <literal>enable-only</literal>, + <literal>disable-only</literal>. When use with the + <command>preset</command> or <command>preset-all</command> + commands controls whether units shall be disabled and + enabled according to the preset rules, or only enabled, or + only disabled.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-n</option></term> <term><option>--lines=</option></term> @@ -1025,17 +1039,36 @@ kobject-uevent 1 systemd-udevd-kernel.socket systemd-udevd.service command line, to the defaults configured in the preset policy files. This has the same effect as <command>disable</command> or <command>enable</command>, - depending how the unit is listed in the preset files. For - more information on the preset policy format, see + depending how the unit is listed in the preset files.</para> + + <para>Use <option>--preset-mode=</option> to control + whether units shall be enabled and disabled, or only + enabled, or only disabled.</para> + + <para>For more information on the preset policy format, + see <citerefentry><refentrytitle>systemd.preset</refentrytitle><manvolnum>5</manvolnum></citerefentry>. For more information on the concept of presets, please - consult the - <ulink url="http://freedesktop.org/wiki/Software/systemd/Preset">Preset</ulink> + consult the <ulink + url="http://freedesktop.org/wiki/Software/systemd/Preset">Preset</ulink> document.</para> </listitem> </varlistentry> <varlistentry> + <term><command>preset-all</command></term> + + <listitem> + <para>Resets all installed unit files to the defaults + configured in the preset policy file (see above).</para> + + <para>Use <option>--preset-mode=</option> to control + whether units shall be enabled and disabled, or only + enabled, or only disabled.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><command>mask <replaceable>NAME</replaceable>...</command></term> <listitem> |