aboutsummaryrefslogtreecommitdiff
path: root/man
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
parentrun: add a switch for specifiying the working directory of a service (diff)
downloadsystemd-badd28e1589e221c0b58106141172a86901187ee.tar.gz
systemd-badd28e1589e221c0b58106141172a86901187ee.tar.bz2
systemd-badd28e1589e221c0b58106141172a86901187ee.zip
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')
-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 a34e20bc2..3c60340dc 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>