summaryrefslogtreecommitdiff
path: root/man/systemd-run.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-22 19:24:48 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-23 12:49:00 +0100
commitbadd28e1589e221c0b58106141172a86901187ee (patch)
tree152e4a90c6d15b3da83326c7fcc9f618ede14c50 /man/systemd-run.xml
parent2d21165a4e901a720a45d50344ecc9c3f078141f (diff)
downloadsystemd-badd28e1589e221c0b58106141172a86901187ee.tar.gz
run: add new --shell switch for spawning a shell as service
I keep running "systemd-run -t /bin/bash" to quickly get a shell running in service context. I suspect I am not the only one, hence let's add a shortcut for it. While we are at it, let's make it smarter, and automatically inherit the $SHELL of the invoking user as well as the working directory, and let's imply --pty. --shell (or -S) is hence equivalent to "-t -d $SHELL".
Diffstat (limited to 'man/systemd-run.xml')
-rw-r--r--man/systemd-run.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/man/systemd-run.xml b/man/systemd-run.xml
index a34e20bc2b..3c60340dc1 100644
--- a/man/systemd-run.xml
+++ b/man/systemd-run.xml
@@ -275,6 +275,15 @@
</varlistentry>
<varlistentry>
+ <term><option>--shell</option></term>
+ <term><option>-S</option></term>
+
+ <listitem><para>A shortcut for <literal>--pty --same-dir --wait --collect --service-type=exec $SHELL</literal>,
+ i.e. requests an interactive shell in the current working directory, running in service context, accessible
+ with a single switch.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--quiet</option></term>
<term><option>-q</option></term>