2010-08-25 08:09:57 +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=Serial Getty on %I
|
2010-10-29 04:18:47 +07:00
|
|
|
BindTo=dev-%i.device
|
2011-02-24 08:32:50 +07:00
|
|
|
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
|
2010-08-25 08:09:57 +07:00
|
|
|
m4_ifdef(`TARGET_FEDORA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
|
|
|
m4_ifdef(`TARGET_ARCH',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2011-02-24 08:32:50 +07:00
|
|
|
m4_ifdef(`TARGET_FRUGALWARE',
|
|
|
|
After=local.service
|
|
|
|
)m4_dnl
|
2011-02-28 20:02:27 +07:00
|
|
|
m4_ifdef(`TARGET_ALTLINUX',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2011-03-09 01:47:29 +07:00
|
|
|
m4_ifdef(`TARGET_MANDRIVA',
|
|
|
|
After=rc-local.service
|
|
|
|
)m4_dnl
|
2010-08-25 08:09:57 +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-25 08:09:57 +07:00
|
|
|
Before=getty.target
|
|
|
|
|
|
|
|
[Service]
|
2011-01-05 03:45:52 +07:00
|
|
|
Environment=TERM=vt100
|
2010-11-15 05:26:53 +07:00
|
|
|
ExecStart=-/sbin/agetty -s %I 115200,38400,9600
|
2010-10-06 01:30:44 +07:00
|
|
|
Restart=always
|
2010-08-25 08:09:57 +07:00
|
|
|
RestartSec=0
|
2010-10-08 23:22:44 +07:00
|
|
|
UtmpIdentifier=%I
|
2011-05-18 06:07:31 +07:00
|
|
|
TTYPath=/dev/%I
|
|
|
|
TTYReset=yes
|
|
|
|
TTYVHangup=yes
|
2011-03-30 04:31:38 +07:00
|
|
|
KillMode=process
|
2010-08-25 08:09:57 +07:00
|
|
|
|
|
|
|
# Some login implementations ignore SIGTERM, so we send SIGHUP
|
|
|
|
# instead, to ensure that login terminates cleanly.
|
|
|
|
KillSignal=SIGHUP
|