man: don't claim systemd would connect stdout/stderr of daemons with /dev/null

This commit is contained in:
Lennart Poettering 2016-04-20 20:52:28 +02:00
parent 8c85680478
commit b9a049b1fb
1 changed files with 6 additions and 8 deletions

View File

@ -180,14 +180,12 @@
functionality of the init system, it is recommended not to functionality of the init system, it is recommended not to
execute them when run as new-style service.</para> execute them when run as new-style service.</para>
<para>Note that new-style init systems guarantee execution of <para>Note that new-style init systems guarantee execution of daemon processes in a clean process context: it is
daemon processes in a clean process context: it is guaranteed guaranteed that the environment block is sanitized, that the signal handlers and mask is reset and that no
that the environment block is sanitized, that the signal left-over file descriptors are passed. Daemons will be executed in their own session, with standard input
handlers and mask is reset and that no left-over file connected to <filename>/dev/null</filename> and standard output/error connected to the
descriptors are passed. Daemons will be executed in their own <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
session, with standard input/output/error connected to logging service, unless otherwise configured. The umask is reset.
<filename>/dev/null</filename> unless otherwise configured. The
umask is reset.
</para> </para>
<para>It is recommended for new-style daemons to implement the <para>It is recommended for new-style daemons to implement the