Add kmscon@.service
authorMatthew Monaco <matthew.monaco@0x01b.net>
Mon, 5 Nov 2012 04:30:42 +0000 (21:30 -0700)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 5 Nov 2012 16:36:57 +0000 (17:36 +0100)
This almost certainly can be optimized, but we should be able to mask
getty@.service with kmscon@.service.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
docs/kmscon@.service [new file with mode: 0644]

diff --git a/docs/kmscon@.service b/docs/kmscon@.service
new file mode 100644 (file)
index 0000000..a75967e
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=KMS System Console on %i
+Documentation=man:kmscon(1)
+After=systemd-user-sessions.service
+Before=getty.target
+IgnoreOnIsolate=yes
+
+[Service]
+ExecStart=-/usr/bin/kmscon --vt=%i -l /bin/login
+UtmpIdentifier=%I
+KillMode=process
+
+[Install]
+Alias=getty.target.wants/kmscon@%I.service