# Simple systemd service that will show journal contents on /dev/tty12 # by running journalctl -af on it. # Install by: # - Saving this as /etc/systemd/system/journal@.service # - Running systemctl enable journal@tty12.service # - Running systemctl start journal@tty12.service # journald can also log on console itself, but current Debian version won't # show timestamps and color-coding. # systemd is under LGPL2.1 etc, this is inspired by getty@.service. [Unit] Description=Journal tail on %I Documentation=man:journalctl(1) IgnoreOnIsolate=true IgnoreOnSnapshot=true DefaultDependencies=false # On systems without virtual consoles, don't start any getty. (Note # that serial gettys are covered by serial-getty@.service, not this # unit ConditionPathExists=/dev/%I [Service] # the VT is cleared by TTYVTDisallocate ExecStart=/bin/journalctl -af Type=idle Restart=always RestartSec=1 UtmpIdentifier=%I StandardOutput=tty TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes #TTYVTDisallocate=yes TTYVTDisallocate=no KillMode=process IgnoreSIGPIPE=no # Unset locale for the console getty since the console has problems # displaying some internationalized messages. Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION= [Install] WantedBy=rescue.target WantedBy=getty.target