chiark / gitweb /
socket: make various socket/pipe options configurable
[elogind.git] / units / getty@.service.m4
1 #  This file is part of systemd.
2 #
3 #  systemd is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU General Public License as published by
5 #  the Free Software Foundation; either version 2 of the License, or
6 #  (at your option) any later version.
7
8 m4_ifdef(`TARGET_FEDORA', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
9 m4_ifdef(`TARGET_SUSE', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
10 m4_ifdef(`TARGET_DEBIAN', `m4_define(`GETTY', `/sbin/getty 38400')')m4_dnl
11 m4_ifdef(`TARGET_GENTOO', `m4_define(`GETTY', `/sbin/agetty 38400')')m4_dnl
12 m4_ifdef(`TARGET_ARCH', `m4_define(`GETTY', `/sbin/agetty -8 38400')')m4_dnl
13 m4_dnl
14 [Unit]
15 Description=Getty on %I
16 Before=getty.target
17 After=basic.target
18 Conflicts=shutdown.target
19
20 [Service]
21 Environment=TERM=linux
22 ExecStart=GETTY %I
23 Restart=restart-always
24 RestartSec=0
25 KillMode=process-group
26
27 [Install]
28 Alias=getty.target.wants/getty@tty1.service
29 Alias=getty.target.wants/getty@tty2.service
30 Alias=getty.target.wants/getty@tty3.service
31 Alias=getty.target.wants/getty@tty4.service
32 Alias=getty.target.wants/getty@tty5.service
33 Alias=getty.target.wants/getty@tty6.service