[Unit] Description=Login shell on the console # The console is the machine's one terminal. The busybox-init images give it a # login shell from /etc/inittab; under systemd this unit does. After=systemd-user-sessions.service ConditionPathExists=/dev/console [Service] # The kernel starts init with HOME=/, and base-files' /.bashrc sources # /etc/bashrc.d; the shell keeps that. Environment=HOME=/ WorkingDirectory=/ # The browser frame's console is xterm.js and it starts PID 1 with TERM=dumb, # so the shell names the terminal; a TERM the launcher did name is kept. # BRINTOS-WORKAROUND: brintos/hardwarejs#102 revisit — the browser frame starts PID 1 with TERM=dumb for its xterm.js console ExecStart=/bin/sh -c '[ -n "$$TERM" ] && [ "$$TERM" != dumb ] || export TERM=xterm-256color; [ -x /bin/bash ] && exec /bin/bash -l; exec /bin/sh -l' StandardInput=tty StandardOutput=tty StandardError=tty TTYPath=/dev/console Restart=always RestartSec=0 KillMode=process IgnoreSIGPIPE=no SendSIGHUP=yes [Install] WantedBy=multi-user.target