When starting GNU/screen via systemd the SHELL varible is empty whereas
SHELL=/bin/zsh when starting screen via grml-runtty.
If we can assume that zsh is installed on Grml then this solution is ok.
If not, we should address that in the run-screen script with something like:
SHELL=/bin/sh
[ -x /bin/zsh ] && SHELL=/bin/zsh
# now run screen with config
if [ `id -u` = 0 ] ; then
exec screen -U -c /etc/grml/screenrc -s $SHELL
[snip]
(partly) fixes grml/grml#14
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty2
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty2
+Environment="SHELL=/bin/zsh"
ExecStart=
ExecStart=-/usr/share/grml-scripts/run-screen
ExecStart=
ExecStart=-/usr/share/grml-scripts/run-screen
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty3
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty3
+Environment="SHELL=/bin/zsh"
ExecStart=
ExecStart=-/usr/share/grml-scripts/run-screen
ExecStart=
ExecStart=-/usr/share/grml-scripts/run-screen
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty4
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty4
+Environment="SHELL=/bin/zsh"
User=$USERNAME
ExecStart=
ExecStart=-/usr/share/grml-scripts/run-screen
User=$USERNAME
ExecStart=
ExecStart=-/usr/share/grml-scripts/run-screen