From: Michal Koutný Date: Mon, 30 Oct 2023 18:50:20 +0000 (+0100) Subject: man: Add remarks about StandardInput=socket and sd_listen_fds() X-Git-Tag: v255-rc1~78^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F29770%2Fhead;p=thirdparty%2Fsystemd.git man: Add remarks about StandardInput=socket and sd_listen_fds() It confuses users when they cannot find respective environment variables with config that is supposes for (x)inetd activated service only. Fix: #29670 --- diff --git a/man/sd_listen_fds.xml b/man/sd_listen_fds.xml index 9fc06d730b3..7cd744e6c11 100644 --- a/man/sd_listen_fds.xml +++ b/man/sd_listen_fds.xml @@ -198,6 +198,9 @@ number. sd_listen_fds_with_names() does the same but also parses $LISTEN_FDNAMES if set. + + These functions are not designed for services that specify StandardInput=socket + as the $LISTEN_FDS variable is not set in their environment. diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index a82868aeb12..e9cef24d182 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -2941,7 +2941,8 @@ SystemCallErrorNumber=EPERM input will be connected to the socket the service was activated from, which is primarily useful for compatibility with daemons designed for use with the traditional inetd8 socket activation - daemon. + daemon ($LISTEN_FDS (and related) environment variables are not passed when + value is configured). The option connects standard input to a specific, named file descriptor provided by a socket unit. The name may be specified as part of this option, following a