From 9b15b7846d4de01bb5d9700a24077787e984e8ab Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 22 Dec 2014 19:45:32 +0100 Subject: run: add a new "-t" mode for invoking a binary on an allocated TTY --- man/systemd-run.xml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'man/systemd-run.xml') diff --git a/man/systemd-run.xml b/man/systemd-run.xml index b9cec91d15..5fb4ee28eb 100644 --- a/man/systemd-run.xml +++ b/man/systemd-run.xml @@ -225,10 +225,16 @@ along with systemd; If not, see . - - - - + + + + + When invoking a command as service connects + its standard input and output to the invoking tty via a + pseudo TTY device. This allows invoking binaries as services + that expect interactive user input, such as an interactive + command shells. + @@ -278,6 +284,11 @@ along with systemd; If not, see . set-property command. + + + + + @@ -333,6 +344,13 @@ Dec 08 20:44:38 container systemd[1]: Started /bin/touch /tmp/foo. -- Logs begin at Fri 2014-12-05 19:09:21 KST, end at Mon 2014-12-08 20:44:54 KST. -- Dec 08 20:44:48 container systemd[1]: Starting /bin/touch /tmp/foo... Dec 08 20:44:48 container systemd[1]: Started /bin/touch /tmp/foo. + + The following command invokes /bin/bash + as a service passing its standard input, output and error to + the calling TTY. + + # systemd-run -t /bin/bash + -- cgit v1.2.3-54-g00ecf