From 1bdecfb8e779d945aa995be866b358a694fd7460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renaud=20M=C3=A9trich?= Date: Fri, 18 Sep 2020 08:58:52 +0200 Subject: [PATCH] socket: unified documentation for Accept to use 'yes/no' everywhere --- man/org.freedesktop.systemd1.xml | 4 ++-- man/systemd.socket.xml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/org.freedesktop.systemd1.xml b/man/org.freedesktop.systemd1.xml index 3d83324108..20dcf029bb 100644 --- a/man/org.freedesktop.systemd1.xml +++ b/man/org.freedesktop.systemd1.xml @@ -5524,12 +5524,12 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2esocket { In addition to these properties there are the following: NAccepted contains the accumulated number of connections ever accepted on this - socket. This only applies to sockets with Accept set to true, + socket. This only applies to sockets with Accept set to yes, i.e. those where systemd is responsible for accepted connections. Similarly NConnections contains the number of currently open connections on this socket. It only applies only to socket units with Accept set to - true. + yes. Result encodes the reason why a socket unit failed if it is in the failed state (see ActiveState above). The values diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml index 733977b88d..ba0ad1d36e 100644 --- a/man/systemd.socket.xml +++ b/man/systemd.socket.xml @@ -389,14 +389,14 @@ Accept= - Takes a boolean argument. If true, a service + 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 . For + incoming traffic. Defaults to . For performance reasons, it is recommended to write new daemons only in a way that is suitable for . A daemon listening on an @@ -632,7 +632,7 @@ the value of the SELinuxContext= option. This configuration option only affects sockets with Accept= mode set to - true. Also note that this option is useful + yes. Also note that this option is useful only when MLS/MCS SELinux policy is deployed. Defaults to false.