socket: unified documentation for Accept to use 'yes/no' everywhere

This commit is contained in:
Renaud Métrich 2020-09-18 08:58:52 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 437d6de1fe
commit 1bdecfb8e7
2 changed files with 6 additions and 6 deletions

View file

@ -5524,12 +5524,12 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2esocket {
<para>In addition to these properties there are the following:</para>
<para><varname>NAccepted</varname> contains the accumulated number of connections ever accepted on this
socket. This only applies to sockets with <varname>Accept</varname> set to <literal>true</literal>,
socket. This only applies to sockets with <varname>Accept</varname> set to <literal>yes</literal>,
i.e. those where systemd is responsible for accepted connections. </para>
<para>Similarly <varname>NConnections</varname> contains the number of currently open connections on
this socket. It only applies only to socket units with <varname>Accept</varname> set to
<literal>true</literal>.</para>
<literal>yes</literal>.</para>
<para><varname>Result</varname> encodes the reason why a socket unit failed if it is in the
<literal>failed</literal> state (see <varname>ActiveState</varname> above). The values

View file

@ -389,14 +389,14 @@
<varlistentry>
<term><varname>Accept=</varname></term>
<listitem><para>Takes a boolean argument. If true, a service
<listitem><para>Takes a boolean argument. If yes, a service
instance is spawned for each incoming connection and only the
connection socket is passed to it. If false, all listening
connection socket is passed to it. If no, all listening
sockets themselves are passed to the started service unit, and
only one service unit is spawned for all connections (also see
above). This value is ignored for datagram sockets and FIFOs
where a single service unit unconditionally handles all
incoming traffic. Defaults to <option>false</option>. For
incoming traffic. Defaults to <option>no</option>. For
performance reasons, it is recommended to write new daemons
only in a way that is suitable for
<option>Accept=no</option>. A daemon listening on an
@ -632,7 +632,7 @@
the value of the <varname>SELinuxContext=</varname> option.
This configuration option only affects sockets with
<varname>Accept=</varname> mode set to
<literal>true</literal>. Also note that this option is useful
<literal>yes</literal>. Also note that this option is useful
only when MLS/MCS SELinux policy is deployed. Defaults to
<literal>false</literal>. </para></listitem>
</varlistentry>