From a735309d17eb99e4df3d952c5e5d3e60f8fe5a40 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 04:23:15 +0200 Subject: Adding upstream version 252.26. Signed-off-by: Daniel Baumann --- man/systemd-run.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'man') diff --git a/man/systemd-run.xml b/man/systemd-run.xml index 0c91d61..d57eda1 100644 --- a/man/systemd-run.xml +++ b/man/systemd-run.xml @@ -64,8 +64,8 @@ other service, and thus shows up in the output of systemctl list-units like any other unit. It will run in a clean and detached execution environment, with the service manager as its parent process. In this mode, systemd-run will start the service asynchronously in the background and return after the - command has begun execution (unless or are specified, see - below). + command has begun execution (unless , , , + or are specified, see below). If a command is run as transient scope unit, it will be executed by systemd-run itself as parent process and will thus inherit the execution environment of the caller. However, the @@ -262,6 +262,11 @@ to the terminal systemd-run is invoked on, via a pseudo TTY device. This allows running programs that expect interactive user input/output as services, such as interactive command shells. + This option will result in systemd-run synchronously waiting for + the transient service to terminate, similar to specifying . If specified + along with , systemd-run won't exit when manually disconnecting + from the pseudo TTY device. + Note that machinectl1's shell command is usually a better alternative for requesting a new, interactive login @@ -276,15 +281,19 @@ If specified, standard input, output, and error of the transient service are inherited from the systemd-run command itself. This allows systemd-run - to be used within shell pipelines. - Note that this mode is not suitable for interactive command shells and similar, as the - service process will not become a TTY controller when invoked on a terminal. Use instead - in that case. + to be used within shell pipelines. + + Note that this mode is not suitable for interactive command shells and similar, as the + service process will not become a TTY controller when invoked on a terminal. Use + instead in that case. When both and are used in combination the more appropriate option is automatically determined and used. Specifically, when invoked with standard input, output and error connected to a TTY is used, and otherwise . + This option will result in systemd-run synchronously waiting for + the transient service to terminate, similar to specifying . + When this option is used the original file descriptors systemd-run receives are passed to the service processes as-is. If the service runs with different privileges than systemd-run, this means the service might not be able to re-open the passed file -- cgit v1.2.3