2010-05-17 01:34:36 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02: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 01:34:36 +02:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Getty on %I
|
2012-11-20 20:09:38 +01:00
|
|
|
Documentation=man:agetty(8) man:systemd-getty-generator(8)
|
|
|
|
Documentation=http://0pointer.de/blog/projects/serial-console.html
|
2012-04-12 17:29:42 +02:00
|
|
|
After=systemd-user-sessions.service plymouth-quit-wait.service
|
2013-01-04 22:36:48 +01:00
|
|
|
m4_ifdef(`HAVE_SYSV_COMPAT',
|
2011-10-28 19:16:33 +02:00
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2010-05-17 01:34:36 +02:00
|
|
|
|
2010-10-08 18:22:44 +02: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-18 23:10:27 +02:00
|
|
|
Before=getty.target
|
2012-04-11 21:58:33 +02:00
|
|
|
IgnoreOnIsolate=yes
|
2010-08-18 23:10:27 +02:00
|
|
|
|
2013-07-13 15:59:35 +02:00
|
|
|
# On systems without virtual consoles, don't start any getty. Note
|
2012-04-12 17:31:26 +02:00
|
|
|
# that serial gettys are covered by serial-getty@.service, not this
|
2013-07-13 15:59:35 +02:00
|
|
|
# unit.
|
2012-04-12 17:31:26 +02:00
|
|
|
ConditionPathExists=/dev/tty0
|
|
|
|
|
2010-05-17 01:34:36 +02:00
|
|
|
[Service]
|
2012-06-06 11:26:30 +02:00
|
|
|
# the VT is cleared by TTYVTDisallocate
|
2013-12-18 17:48:31 +01:00
|
|
|
ExecStart=-/sbin/agetty --noclear %I $TERM
|
2012-04-24 14:28:00 +02:00
|
|
|
Type=idle
|
2010-10-05 20:30:44 +02:00
|
|
|
Restart=always
|
2010-05-18 03:08:18 +02:00
|
|
|
RestartSec=0
|
2010-10-08 16:06:23 +02:00
|
|
|
UtmpIdentifier=%I
|
2011-05-18 01:07:31 +02:00
|
|
|
TTYPath=/dev/%I
|
|
|
|
TTYReset=yes
|
|
|
|
TTYVHangup=yes
|
|
|
|
TTYVTDisallocate=yes
|
2011-03-29 23:31:38 +02:00
|
|
|
KillMode=process
|
2012-02-09 03:18:04 +01:00
|
|
|
IgnoreSIGPIPE=no
|
2013-07-30 01:54:59 +02:00
|
|
|
SendSIGHUP=yes
|
2010-08-05 20:29:11 +02:00
|
|
|
|
2011-01-06 20:38:06 +01:00
|
|
|
# Unset locale for the console getty since the console has problems
|
|
|
|
# displaying some internationalized messages.
|
2011-08-31 14:09:14 +02: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 20:38:06 +01:00
|
|
|
|
2010-06-18 21:56:21 +02:00
|
|
|
[Install]
|
2013-07-13 15:59:35 +02:00
|
|
|
WantedBy=getty.target
|