mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 11:55:23 +03:00
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>
This commit is contained in:
parent
c25b1ee6cd
commit
77f40f165c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user