summaryrefslogtreecommitdiff
path: root/docs/getty@.service
blob: 76999321ed82aa7a22d5880f4a42d05cae828947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Kmscon getty replacement
# Systemd uses a unit called getty@.service to spawn gettys on virtual
# terminals. This unit can be used as drop-in replacement to spawn kmscon
# instead of agetty on VTs.
# Please report inconsistencies and problems with this unit to the kmscon
# developers and not to the systemd developers.
#
# This unit makes systemd-logind run kmscon in default-mode on each virtual
# terminal that it allocates. Use /etc/kmscon/kmscon.conf to modify the runtime
# options for kmscon. You can use "-c /etc/some/path" to change the
# configuration directory for this kmscon process.
#
# This unit takes a VT name as argument. So use getty@tty4.service to run this
# on /dev/tty4 (which is VT number 4). This is always limited to seat0. If you
# want to run kmscon on other seats, use the default service files provided by
# kmscon.
#

[Unit]
Description=Kmscon-Getty on %I
Documentation=man:kmscon(1)
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service
After=plymouth-quit-wait.service
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]
ExecStart=/usr/bin/kmscon --vt=%I --seats=seat0 --no-switchvt
Restart=always
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes

[Install]
Alias=getty.target.wants/getty@tty1.service