2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 19:35:03 +03:00
#
2012-04-22 04:15:22 +04: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 Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Console Getty
2017-08-07 20:30:56 +03:00
Documentation=man:agetty(8) man:systemd-getty-generator(8)
2012-04-22 04:15:22 +04:00
After=systemd-user-sessions.service plymouth-quit-wait.service
2013-01-05 01:36:48 +04:00
m4_ifdef(`HAVE_SYSV_COMPAT',
2017-09-05 15:53:25 +03:00
After=rc-local.service getty-pre.target
2012-04-22 04:15:22 +04:00
)m4_dnl
Before=getty.target
2017-08-09 16:43:41 +03:00
# OCI containers may be run without a console
ConditionPathExists=/dev/console
2012-04-22 04:15:22 +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' --noclear --keep-baud console 115200,38400,9600 $TERM
2012-04-24 16:28:00 +04:00
Type=idle
2012-04-22 04:15:22 +04:00
Restart=always
UtmpIdentifier=cons
TTYPath=/dev/console
TTYReset=yes
TTYVHangup=yes
2020-05-26 15:12:56 +03:00
m4_ifdef(`ENABLE_LOGIND',,
2012-04-22 04:15:22 +04:00
KillMode=process
2020-05-26 15:12:56 +03:00
)m4_dnl
2012-04-22 04:15:22 +04:00
IgnoreSIGPIPE=no
2013-07-30 03:54:59 +04:00
SendSIGHUP=yes
2012-04-22 04:15:22 +04:00
[Install]
WantedBy=getty.target