2010-08-25 03:09:57 +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-08-25 03:09:57 +02:00
# (at your option) any later version.
[Unit]
Description=Serial Getty on %I
2012-05-21 15:12:18 +02:00
Documentation=man:agetty(8)
2010-10-28 23:18:47 +02:00
BindTo=dev-%i.device
2011-02-24 02:32:50 +01:00
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
2010-08-25 03:09:57 +02:00
m4_ifdef(`TARGET_FEDORA',
After=rc-local.service
)m4_dnl
m4_ifdef(`TARGET_ARCH',
After=rc-local.service
)m4_dnl
2011-02-24 02:32:50 +01: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
)m4_dnl
2011-03-08 19:47:29 +01:00
m4_ifdef(`TARGET_MANDRIVA',
After=rc-local.service
)m4_dnl
2011-10-28 19:16:33 +02:00
m4_ifdef(`TARGET_MAGEIA',
After=rc-local.service
)m4_dnl
2010-08-25 03:09:57 +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-25 03:09:57 +02:00
Before=getty.target
2012-04-11 21:58:33 +02:00
IgnoreOnIsolate=yes
2010-08-25 03:09:57 +02:00
[Service]
2012-04-22 02:45:39 +02:00
Environment=TERM=vt102
2010-11-14 23:26:53 +01:00
ExecStart=-/sbin/agetty -s %I 115200,38400,9600
2012-04-24 14:28:00 +02:00
Type=idle
2010-10-05 20:30:44 +02:00
Restart=always
2010-08-25 03:09:57 +02:00
RestartSec=0
2010-10-08 18:22:44 +02:00
UtmpIdentifier=%I
2011-05-18 01:07:31 +02:00
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
2011-03-29 23:31:38 +02:00
KillMode=process
2012-02-09 03:18:04 +01:00
IgnoreSIGPIPE=no
2010-08-25 03:09:57 +02:00
# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP