2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
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
2017-08-31 12:20:14 +03:00
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
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.
2017-09-26 20:47:50 +03:00
Conflicts=rescue.service
Before=rescue.service
2017-03-30 11:39:16 +03:00
2010-08-25 05:09:57 +04:00
[Service]
2017-05-24 14:58:01 +03:00
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --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