blob: 902ab6e0538d81e057c1bde777d5603ea7ab3ebf [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 Poettering5e6afdd2010-05-17 01:34:36 +02008[Unit]
9Description=Getty on %I
Lennart Poetteringb81884e2010-10-28 23:18:47 +020010BindTo=dev-%i.device
Lennart Poettering1e7ba842010-11-16 01:25:19 +010011After=dev-%i.device systemd-user-sessions.service
Lennart Poetteringaf65a092010-07-03 19:53:37 +020012m4_ifdef(`TARGET_FEDORA',
13After=rc-local.service
14)m4_dnl
15m4_ifdef(`TARGET_ARCH',
16After=rc-local.service
17)m4_dnl
Lennart Poettering5e6afdd2010-05-17 01:34:36 +020018
Lennart Poetteringc84ed682010-10-08 18:22:44 +020019# If additional gettys are spawned during boot then we should make
20# sure that this is synchronized before getty.target, even though
21# getty.target didn't actually pull it in.
Lennart Poettering9f24a812010-08-18 23:10:27 +020022Before=getty.target
23
Lennart Poettering5e6afdd2010-05-17 01:34:36 +020024[Service]
Lennart Poettering180f90c2010-11-16 01:54:07 +010025Environment=TERM=linux
Lennart Poettering92ab3232010-11-14 23:26:53 +010026ExecStart=-/sbin/agetty %I 38400
Lennart Poettering525ee6f2010-10-05 20:30:44 +020027Restart=always
Lennart Poettering1e3fc652010-05-18 03:08:18 +020028RestartSec=0
Lennart Poettering169c1bd2010-10-08 16:06:23 +020029UtmpIdentifier=%I
Lennart Poetteringcd6e4022010-06-01 19:49:13 +020030KillMode=process-group
Lennart Poettering30609d92010-08-05 20:29:11 +020031
32# Some login implementations ignore SIGTERM, so we send SIGHUP
33# instead, to ensure that login terminates cleanly.
Kay Sievers7d49c542010-08-04 18:56:35 +020034KillSignal=SIGHUP
Lennart Poettering3d88bf62010-06-18 21:56:21 +020035
36[Install]
Lennart Poettering07405e92010-07-07 22:29:41 +020037Alias=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