2010-08-25 09:09:57 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 06:20:58 +08: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 09:09:57 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Serial Getty on %I
|
2012-06-27 21:12:29 +08:00
|
|
|
Documentation=man:agetty(8) man:systemd-getty-generator(8)
|
2012-07-14 05:34:40 +08:00
|
|
|
BindsTo=dev-%i.device
|
2011-02-24 09:32:50 +08:00
|
|
|
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
|
2010-08-25 09:09:57 +08:00
|
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2011-12-03 00:44:31 +08:00
|
|
|
m4_ifdef(`TARGET_DEBIAN',
|
|
|
|
After=rc.local.service
|
|
|
|
)m4_dnl
|
2010-08-25 09:09:57 +08:00
|
|
|
m4_ifdef(`TARGET_ARCH',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2011-02-24 09:32:50 +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
|
|
|
|
)m4_dnl
|
2011-03-09 02:47:29 +08:00
|
|
|
m4_ifdef(`TARGET_MANDRIVA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2011-10-29 01:16:33 +08:00
|
|
|
m4_ifdef(`TARGET_MAGEIA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2010-08-25 09:09:57 +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-25 09:09:57 +08:00
|
|
|
Before=getty.target
|
2012-04-12 03:58:33 +08:00
|
|
|
IgnoreOnIsolate=yes
|
2010-08-25 09:09:57 +08:00
|
|
|
|
|
|
|
[Service]
|
2012-10-30 04:59:34 +08:00
|
|
|
ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
|
2012-04-24 20:28:00 +08:00
|
|
|
Type=idle
|
2010-10-06 02:30:44 +08:00
|
|
|
Restart=always
|
2010-08-25 09:09:57 +08:00
|
|
|
RestartSec=0
|
2010-10-09 00:22:44 +08:00
|
|
|
UtmpIdentifier=%I
|
2011-05-18 07:07:31 +08:00
|
|
|
TTYPath=/dev/%I
|
|
|
|
TTYReset=yes
|
|
|
|
TTYVHangup=yes
|
2011-03-30 05:31:38 +08:00
|
|
|
KillMode=process
|
2012-02-09 10:18:04 +08:00
|
|
|
IgnoreSIGPIPE=no
|
2010-08-25 09:09:57 +08:00
|
|
|
|
|
|
|
# Some login implementations ignore SIGTERM, so we send SIGHUP
|
|
|
|
# instead, to ensure that login terminates cleanly.
|
|
|
|
KillSignal=SIGHUP
|