]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.c
core/exec: add a named-descriptor option ("fd") for streams (#4179)
authorLuca Bruno <luca.bruno@coreos.com>
Tue, 18 Oct 2016 00:05:49 +0000 (00:05 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Oct 2016 00:05:49 +0000 (20:05 -0400)
commit52c239d770d3ef955220c5ae72b852360da67c8b
treef36ab699f7c9ddc94578c3388a35a0627a037f96
parentc7458f93991105e9890b0ec8dfc849b019b5df5f
core/exec: add a named-descriptor option ("fd") for streams (#4179)

This commit adds a `fd` option to `StandardInput=`,
`StandardOutput=` and `StandardError=` properties in order to
connect standard streams to externally named descriptors provided
by some socket units.

This option looks for a file descriptor named as the corresponding
stream. Custom names can be specified, separated by a colon.
If multiple name-matches exist, the first matching fd will be used.
man/systemd.exec.xml
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/unit.c