2010-05-17 03:34:36 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
2010-05-17 03:34:36 +04:00
# (at your option) any later version.
[Unit]
Description=Getty on %I
2012-05-21 17:12:18 +04:00
Documentation=man:agetty(8)
2012-04-12 19:29:42 +04:00
After=systemd-user-sessions.service plymouth-quit-wait.service
2010-07-03 21:53:37 +04:00
m4_ifdef(`TARGET_FEDORA',
After=rc-local.service
)m4_dnl
m4_ifdef(`TARGET_ARCH',
After=rc-local.service
)m4_dnl
2010-12-16 17:00:51 +03:00
m4_ifdef(`TARGET_FRUGALWARE',
After=local.service
)m4_dnl
2011-02-28 16:02:27 +03:00
m4_ifdef(`TARGET_ALTLINUX',
After=rc-local.service
2011-03-08 21:47:29 +03:00
)m4_dnl
m4_ifdef(`TARGET_MANDRIVA',
After=rc-local.service
2011-02-28 16:02:27 +03:00
)m4_dnl
2011-10-28 21:16:33 +04:00
m4_ifdef(`TARGET_MAGEIA',
After=rc-local.service
)m4_dnl
2010-05-17 03:34:36 +04:00
2010-10-08 20:22:44 +04:00
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
2010-08-19 01:10:27 +04:00
Before=getty.target
2012-04-11 23:58:33 +04:00
IgnoreOnIsolate=yes
2010-08-19 01:10:27 +04:00
2012-04-12 19:31:26 +04:00
# 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
2010-05-17 03:34:36 +04:00
[Service]
2010-11-16 03:54:07 +03:00
Environment=TERM=linux
2012-06-06 13:26:30 +04:00
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --noclear %I 38400
2012-04-24 16:28:00 +04:00
Type=idle
2010-10-05 22:30:44 +04:00
Restart=always
2010-05-18 05:08:18 +04:00
RestartSec=0
2010-10-08 18:06:23 +04:00
UtmpIdentifier=%I
2011-05-18 03:07:31 +04:00
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
2011-03-30 01:31:38 +04:00
KillMode=process
2012-02-09 06:18:04 +04:00
IgnoreSIGPIPE=no
2010-08-05 22:29:11 +04:00
2011-01-06 22:38:06 +03:00
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
2011-08-31 16:09:14 +04:00
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
2011-01-06 22:38:06 +03:00
2010-08-05 22:29:11 +04:00
# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
2010-08-04 20:56:35 +04:00
KillSignal=SIGHUP
2010-06-18 23:56:21 +04:00
[Install]
2011-06-28 02:26:10 +04:00
Alias=getty.target.wants/getty@tty1.service