2010-05-17 07:34:36 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Getty on %I
|
2010-10-29 05:18:47 +08:00
|
|
|
BindTo=dev-%i.device
|
2011-02-24 09:32:50 +08:00
|
|
|
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
|
2010-07-04 01:53:37 +08:00
|
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
|
|
|
m4_ifdef(`TARGET_ARCH',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2010-12-16 22:00:51 +08:00
|
|
|
m4_ifdef(`TARGET_FRUGALWARE',
|
|
|
|
After=local.service
|
|
|
|
)m4_dnl
|
2011-02-28 21:02:27 +08:00
|
|
|
m4_ifdef(`TARGET_ALTLINUX',
|
|
|
|
After=rc-local.service
|
2011-03-09 02:47:29 +08:00
|
|
|
)m4_dnl
|
|
|
|
m4_ifdef(`TARGET_MANDRIVA',
|
|
|
|
After=rc-local.service
|
2011-02-28 21:02:27 +08:00
|
|
|
)m4_dnl
|
2011-10-29 01:16:33 +08:00
|
|
|
m4_ifdef(`TARGET_MAGEIA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2010-05-17 07:34:36 +08:00
|
|
|
|
2010-10-09 00:22:44 +08: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 05:10:27 +08:00
|
|
|
Before=getty.target
|
2012-04-12 03:58:33 +08:00
|
|
|
IgnoreOnIsolate=yes
|
2010-08-19 05:10:27 +08:00
|
|
|
|
2010-05-17 07:34:36 +08:00
|
|
|
[Service]
|
2010-11-16 08:54:07 +08:00
|
|
|
Environment=TERM=linux
|
2010-11-15 06:26:53 +08:00
|
|
|
ExecStart=-/sbin/agetty %I 38400
|
2010-10-06 02:30:44 +08:00
|
|
|
Restart=always
|
2010-05-18 09:08:18 +08:00
|
|
|
RestartSec=0
|
2010-10-08 22:06:23 +08:00
|
|
|
UtmpIdentifier=%I
|
2011-05-18 07:07:31 +08:00
|
|
|
TTYPath=/dev/%I
|
|
|
|
TTYReset=yes
|
|
|
|
TTYVHangup=yes
|
|
|
|
TTYVTDisallocate=yes
|
2011-03-30 05:31:38 +08:00
|
|
|
KillMode=process
|
2012-02-09 10:18:04 +08:00
|
|
|
IgnoreSIGPIPE=no
|
2010-08-06 02:29:11 +08:00
|
|
|
|
2011-01-07 03:38:06 +08:00
|
|
|
# Unset locale for the console getty since the console has problems
|
|
|
|
# displaying some internationalized messages.
|
2011-08-31 20:09:14 +08: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-07 03:38:06 +08:00
|
|
|
|
2010-08-06 02:29:11 +08:00
|
|
|
# Some login implementations ignore SIGTERM, so we send SIGHUP
|
|
|
|
# instead, to ensure that login terminates cleanly.
|
2010-08-05 00:56:35 +08:00
|
|
|
KillSignal=SIGHUP
|
2010-06-19 03:56:21 +08:00
|
|
|
|
|
|
|
[Install]
|
2011-06-28 06:26:10 +08:00
|
|
|
Alias=getty.target.wants/getty@tty1.service
|