Skip to content

Commit 92c4eaf

Browse files
committed
Merge pull request systemd#472 from keszybz/documentation-updates2
Documentation updates
2 parents 4ef9c85 + 9407bc2 commit 92c4eaf

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

man/sysctl.d.xml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@
123123
</example>
124124

125125
<example>
126-
<title>Disable packet filter on bridged packets (method one)</title>
126+
<title>Apply settings available only when a certain module is loaded (method one)</title>
127127
<para><filename>/etc/udev/rules.d/99-bridge.rules</filename>:
128128
</para>
129129

130-
<programlisting>ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/net/bridge"
130+
<programlisting>ACTION=="add", SUBSYSTEM=="module", KERNEL=="br_netfilter", \
131+
RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/net/bridge"
131132
</programlisting>
132133

133134
<para><filename>/etc/sysctl.d/bridge.conf</filename>:
@@ -137,14 +138,20 @@
137138
net.bridge.bridge-nf-call-iptables = 0
138139
net.bridge.bridge-nf-call-arptables = 0
139140
</programlisting>
141+
142+
<para>This method applies settings when the module is
143+
loaded. Please note that unless the <filename>br_netfilter</filename>
144+
module is loaded, bridged packets will not be filtered by
145+
netfilter (starting with kernel 3.18), so simply not loading the
146+
module is suffient to avoid filtering.</para>
140147
</example>
141148

142149
<example>
143-
<title>Disable packet filter on bridged packets (method two)</title>
150+
<title>Apply settings available only when a certain module is loaded (method two)</title>
144151
<para><filename>/etc/modules-load.d/bridge.conf</filename>:
145152
</para>
146153

147-
<programlisting>bridge</programlisting>
154+
<programlisting>br_netfilter</programlisting>
148155

149156
<para><filename>/etc/sysctl.d/bridge.conf</filename>:
150157
</para>
@@ -153,6 +160,12 @@ net.bridge.bridge-nf-call-arptables = 0
153160
net.bridge.bridge-nf-call-iptables = 0
154161
net.bridge.bridge-nf-call-arptables = 0
155162
</programlisting>
163+
164+
<para>This method forces the module to be always loaded. Please
165+
note that unless the <filename>br_netfilter</filename> module is
166+
loaded, bridged packets will not be filtered with netfilter
167+
(starting with kernel 3.18), so simply not loading the module is
168+
suffient to avoid filtering.</para>
156169
</example>
157170
</refsect1>
158171

man/systemctl.xml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,30 @@
114114

115115
<listitem>
116116
<para>When showing unit/job/manager properties with the
117-
<command>show</command> command, limit display to certain
118-
properties as specified as argument. If not specified, all
119-
set properties are shown. The argument should be a
117+
<command>show</command> command, limit display to properties
118+
specified in the argument. The argument should be a
120119
comma-separated list of property names, such as
121-
<literal>MainPID</literal>. If specified more than once, all
122-
properties with the specified names are shown.</para>
120+
<literal>MainPID</literal>. Unless specified, all known
121+
properties are shown. If specified more than once, all
122+
properties with the specified names are shown. Shell
123+
completion is implemented for property names.</para>
124+
125+
<para>For the manager itself,
126+
<command>systemctl show</command> will show all available
127+
properties. Those properties are documented in
128+
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
129+
</para>
130+
131+
<para>Properties for units vary by unit type, so showing any
132+
unit (even a non-existent one) is a way to list properties
133+
pertaining to this type. Similarly showing any job will list
134+
properties pertaining to all jobs. Properties for units are
135+
documented in
136+
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
137+
and the pages for individual unit types
138+
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
139+
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
140+
etc.</para>
123141
</listitem>
124142
</varlistentry>
125143

0 commit comments

Comments
 (0)