blob: e023a9dcb74af931ca5143ab8c5d5c27d3bfe9b7 [file] [log] [blame]
Lennart Poettering5e6afdd2010-05-17 01:34:36 +02001# This file is part of systemd.
2#
Lennart Poettering5e6afdd2010-05-17 01:34:36 +02003# 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.
Lennart Poettering5e6afdd2010-05-17 01:34:36 +02007
Lennart Poetteringe6aad082010-05-17 02:17:47 +02008m4_ifdef(`TARGET_FEDORA', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
Kay Sieverscfe243e2010-05-20 17:55:42 +02009m4_ifdef(`TARGET_SUSE', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
Lennart Poetteringe6aad082010-05-17 02:17:47 +020010m4_ifdef(`TARGET_DEBIAN', `m4_define(`GETTY', `/sbin/getty 38400')')m4_dnl
Marc-Antoine Perennou419f3282010-05-17 11:49:58 +020011m4_ifdef(`TARGET_GENTOO', `m4_define(`GETTY', `/sbin/agetty 38400')')m4_dnl
Tom Gundersen1ebdf2d2010-06-16 13:50:55 +020012m4_ifdef(`TARGET_ARCH', `m4_define(`GETTY', `/sbin/agetty -8 38400')')m4_dnl
Lennart Poetteringe6aad082010-05-17 02:17:47 +020013m4_dnl
Lennart Poettering5e6afdd2010-05-17 01:34:36 +020014[Unit]
15Description=Getty on %I
16Before=getty.target
Lennart Poetteringaf65a092010-07-03 19:53:37 +020017m4_ifdef(`TARGET_FEDORA',
18After=rc-local.service
19)m4_dnl
20m4_ifdef(`TARGET_ARCH',
21After=rc-local.service
22)m4_dnl
Lennart Poettering5e6afdd2010-05-17 01:34:36 +020023
24[Service]
Lennart Poetteringcd6e4022010-06-01 19:49:13 +020025Environment=TERM=linux
Lennart Poettering5e6afdd2010-05-17 01:34:36 +020026ExecStart=GETTY %I
Lennart Poettering1e3fc652010-05-18 03:08:18 +020027Restart=restart-always
28RestartSec=0
Lennart Poetteringcd6e4022010-06-01 19:49:13 +020029KillMode=process-group
Lennart Poettering30609d92010-08-05 20:29:11 +020030
31# Some login implementations ignore SIGTERM, so we send SIGHUP
32# instead, to ensure that login terminates cleanly.
Kay Sievers7d49c542010-08-04 18:56:35 +020033KillSignal=SIGHUP
Lennart Poettering3d88bf62010-06-18 21:56:21 +020034
35[Install]
Lennart Poettering07405e92010-07-07 22:29:41 +020036Alias=getty.target.wants/getty@tty1.service getty.target.wants/getty@tty2.service getty.target.wants/getty@tty3.service getty.target.wants/getty@tty4.service getty.target.wants/getty@tty5.service getty.target.wants/getty@tty6.service