aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg15/infoscreens/getty@tty6.service
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tg15/infoscreens/getty@tty6.service')
-rw-r--r--examples/tg15/infoscreens/getty@tty6.service46
1 files changed, 46 insertions, 0 deletions
diff --git a/examples/tg15/infoscreens/getty@tty6.service b/examples/tg15/infoscreens/getty@tty6.service
new file mode 100644
index 0000000..cba59d8
--- /dev/null
+++ b/examples/tg15/infoscreens/getty@tty6.service
@@ -0,0 +1,46 @@
+# systemd tty-file, haxed for autologin
+# needs agetty
+# Tech:server
+
+[Unit]
+Description=Getty on %I
+Documentation=man:agetty(8) man:systemd-getty-generator(8)
+Documentation=http://0pointer.de/blog/projects/serial-console.html
+After=systemd-user-sessions.service plymouth-quit-wait.service
+After=rc-local.service
+
+# If additional gettys are spawned during boot then we should make
+# sure that this is synchronized before getty.target, even though
+# getty.target didn't actually pull it in.
+Before=getty.target
+IgnoreOnIsolate=yes
+
+# 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/tty0
+
+[Service]
+# the VT is cleared by TTYVTDisallocate
+ExecStart=-/sbin/agetty --autologin lol %I 38400
+Type=idle
+Restart=always
+RestartSec=0
+UtmpIdentifier=%I
+TTYPath=/dev/%I
+TTYReset=yes
+TTYVHangup=yes
+TTYVTDisallocate=yes
+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=
+
+# Some login implementations ignore SIGTERM, so we send SIGHUP
+# instead, to ensure that login terminates cleanly.
+KillSignal=SIGHUP
+
+[Install]
+Alias=getty.target.wants/getty@tty1.service