2010-08-25 05:09:57 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04: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 05:09:57 +04:00
# (at your option) any later version.
[Unit]
Description=Serial Getty on %I
2012-06-27 17:12:29 +04:00
Documentation=man:agetty(8) man:systemd-getty-generator(8)
2012-11-20 23:09:38 +04:00
Documentation=http://0pointer.de/blog/projects/serial-console.html
2012-07-14 01:34:40 +04:00
BindsTo=dev-%i.device
2011-02-24 04:32:50 +03:00
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
2013-01-05 01:36:48 +04:00
m4_ifdef(`HAVE_SYSV_COMPAT',
2011-10-28 21:16:33 +04:00
After=rc-local.service
)m4_dnl
2010-08-25 05:09:57 +04:00
2010-10-08 20:22:44 +04: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 05:09:57 +04:00
Before=getty.target
2012-04-11 23:58:33 +04:00
IgnoreOnIsolate=yes
2010-08-25 05:09:57 +04:00
2017-03-30 11:39:16 +03:00
# IgnoreOnIsolate causes issues with sulogin, if someone isolates
# rescue.target or starts rescue.service from multi-user.target or
# graphical.target.
Conflicts=rescue.service
Before=rescue.service
2010-08-25 05:09:57 +04:00
[Service]
getty: Start getty on 3270 terminals available on Linux on System z
Add the first 3270 terminal device that is associated with the Linux preferred
console to the list of virtualization consoles. This is required to
automatically start a getty if the conmode=3270 kernel parameter is specified
for Linux on z/VM instances. Note that a queued upstream patch also enable
the 3270 terminal device if it is associated with the Linux preferred console.
How
To successfully start agetty on a 3270 terminal, a change in the agetty
parameter order is required. Previously, agetty would started like this:
/sbin/agetty --keep-baud 3270/tty1 115200,38400,9600 TERM
The agetty program interprets the "3270/tty1" as baud rate and fails to start
with the "bad speed: 3270/tty1" error message. Fixing this in agetty is more
complex rather than reordering the command line parameters like this:
/sbin/agetty --keep-baud 115200,38400,9600 3270/tty1 TERM
According to agetty sources and "agetty --help", agetty accepts the "tty",
"baudrate tty", and "tty baudrate" specifications.
P.S. The "tty: Set correct tty name in 'active' sysfs attribute" introduces
a change to display the terminal device which is associated with the
Linux preferred console. This change helps to let systemd handle this
particular case only. Without the changes of this commit, no additional
3270 terminal device can be managed by systemd.
https://git.kernel.org/cgit/linux/kernel/git/gregkh/tty.git/commit/?id=723abd87f6e536f1353c8f64f621520bc29523a3
2014-03-11 21:41:09 +04:00
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
2012-04-24 16:28:00 +04:00
Type=idle
2010-10-05 22:30:44 +04:00
Restart=always
2010-10-08 20:22:44 +04:00
UtmpIdentifier=%I
2011-05-18 03:07:31 +04:00
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
2011-03-30 01:31:38 +04:00
KillMode=process
2012-02-09 06:18:04 +04:00
IgnoreSIGPIPE=no
2013-07-30 03:54:59 +04:00
SendSIGHUP=yes
2014-02-24 17:02:28 +04:00
[Install]
WantedBy=getty.target