[Unit] Description=Root shell at tty8 # after setting the host name to correctly display it in the shell prompt After=agama-hostname.service [Service] TTYPath=/dev/tty8 StandardInput=tty # run as login shell to set the defaults from /etc/profile ExecStart=/usr/bin/bash --login # start it again after crashing or accidentally closing the shell via "exit" or Ctrl+D Restart=always Type=exec Environment=TERM=linux # Bash ignores SIGTERM, send SIGHUP to ensure that it terminates cleanly KillSignal=SIGHUP [Install] WantedBy=multi-user.target