summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2013-06-19 14:59:02 +0200
committerAuke Kok <auke-jan.h.kok@intel.com>2013-06-19 15:24:05 -0700
commit77f40f165cc60a1d6b8a3503e4b7e46814d5935e (patch)
treeb86b77c3f3552cac6dfc342556e3d1c5e94ac060
parentc25b1ee6cd6d956a834ba50568436b3349320d43 (diff)
Describe handling of an AF_UNIX socket
Describe how to handle an AF_UNIX socket, with Accept set to false, received from systemd, upon exit. Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r--man/systemd.socket.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml
index 6dc847df3f..f1e7d408ab 100644
--- a/man/systemd.socket.xml
+++ b/man/systemd.socket.xml
@@ -381,9 +381,15 @@
performance reasons, it is recommended
to write new daemons only in a way
that is suitable for
- <option>Accept=false</option>. This
- option is mostly useful to allow
- daemons designed for usage with
+ <option>Accept=false</option>. A daemon
+ listening on an AF_UNIX socket may, but does not need to, call
+ <citerefentry><refentrytitle>close</refentrytitle><manvolnum>2</manvolnum></citerefentry>
+ or
+ <citerefentry><refentrytitle>shutdown</refentrytitle><manvolnum>2</manvolnum></citerefentry>
+ on the received socket before exiting. However,
+ it must not unlink the socket from a
+ filesystem. This option is mostly useful
+ to allow daemons designed for usage with
<citerefentry><refentrytitle>inetd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
to work unmodified with systemd socket
activation.</para></listitem>