run: add new --shell switch for spawning a shell as service
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Nov 2018 18:24:48 +0000 (19:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 11:49:00 +0000 (12:49 +0100)
commitbadd28e1589e221c0b58106141172a86901187ee
tree152e4a90c6d15b3da83326c7fcc9f618ede14c50
parent2d21165a4e901a720a45d50344ecc9c3f078141f
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".
man/systemd-run.xml
src/run/run.c