]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: add new --pipe option for including "systemd-run" commands in shell pipelines
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Sep 2017 13:38:40 +0000 (15:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Sep 2017 14:28:12 +0000 (16:28 +0200)
commit5dca7739e862eae50a162b0cc7f8613f7fd33c81
tree90ae1e806fd0281e05aeec8439cda5ef751e5b21
parentc13ee7cc8be47b7d7a87b69b2ce9d3f35d530cee
run: add new --pipe option for including "systemd-run" commands in shell pipelines

In this mode, we'll directly connect stdin/stdout/stderr of the invoked
service with whatever systemd-run itself is invoked on. This allows
inclusion of "systemd-run" commands in shell pipelines, as unlike
"--pty" this means EOF of stdin/stdout/stderr are propagated
independently.

If --pty and --pipe are combined systemd-run will automatically pick the
right choice for the context it is invoked in, i.e. --pty when invoked
on a TTY, and --pipe otherwise.
TODO
man/systemd-run.xml
src/run/run.c