man: add example for setting multiple properties at once

Fixes: #4908
This commit is contained in:
Lennart Poettering 2019-07-12 09:55:05 +02:00
parent 84f8e250ff
commit 5b792edb68
1 changed files with 9 additions and 5 deletions

View File

@ -1098,11 +1098,15 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
previously hence they will be effective when the unit will
be started.</para>
<para>Note that this command allows changing multiple
properties at the same time, which is preferable over
setting them individually. Like with unit file configuration
settings, assigning an empty list will reset the property.
</para>
<para>Note that this command allows changing multiple properties at the same time, which is
preferable over setting them individually.</para>
<para>Example: <command>systemctl set-property foobar.service CPUWeight=200 MemoryMax=2G IPAccounting=yes</command></para>
<para>Like with unit file configuration settings, assigning an empty setting usually resets a
property to its defaults.</para>
<para>Example: <command>systemctl set-property avahi-daemon.service IPAddressDeny=</command></para>
</listitem>
</varlistentry>