2010-05-17 06:34:36 +07: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 04:18:47 +07:00
|
|
|
BindTo=dev-%i.device
|
2010-11-16 07:25:19 +07:00
|
|
|
After=dev-%i.device systemd-user-sessions.service
|
2010-07-04 00:53:37 +07:00
|
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
|
|
|
m4_ifdef(`TARGET_ARCH',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2010-05-17 06:34:36 +07:00
|
|
|
|
2010-10-08 23:22:44 +07: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 04:10:27 +07:00
|
|
|
Before=getty.target
|
|
|
|
|
2010-05-17 06:34:36 +07:00
|
|
|
[Service]
|
2010-11-15 05:26:53 +07:00
|
|
|
ExecStart=-/sbin/agetty %I 38400
|
2010-10-06 01:30:44 +07:00
|
|
|
Restart=always
|
2010-05-18 08:08:18 +07:00
|
|
|
RestartSec=0
|
2010-10-08 21:06:23 +07:00
|
|
|
UtmpIdentifier=%I
|
2010-06-02 00:49:13 +07:00
|
|
|
KillMode=process-group
|
2010-08-06 01:29:11 +07:00
|
|
|
|
|
|
|
# Some login implementations ignore SIGTERM, so we send SIGHUP
|
|
|
|
# instead, to ensure that login terminates cleanly.
|
2010-08-04 23:56:35 +07:00
|
|
|
KillSignal=SIGHUP
|
2010-06-19 02:56:21 +07:00
|
|
|
|
|
|
|
[Install]
|
2010-07-08 03:29:41 +07:00
|
|
|
Alias=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
|