]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/console-getty.service.m4
update TODO
[thirdparty/systemd.git] / units / console-getty.service.m4
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
337eebb9
LP
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9
10[Unit]
11Description=Console Getty
8522ee79 12Documentation=man:agetty(8) man:systemd-getty-generator(8)
337eebb9 13After=systemd-user-sessions.service plymouth-quit-wait.service
83514a2f 14m4_ifdef(`HAVE_SYSV_COMPAT',
45e27532 15After=rc-local.service getty-pre.target
337eebb9
LP
16)m4_dnl
17Before=getty.target
18
858beb39
AJ
19# OCI containers may be run without a console
20ConditionPathExists=/dev/console
21
337eebb9 22[Service]
db6aedab
NK
23# The '-o' option value tells agetty to replace 'login' arguments with an
24# option to preserve environment (-p), followed by '--' for safety, and then
25# the entered username.
26ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud console 115200,38400,9600 $TERM
f2b68789 27Type=idle
337eebb9 28Restart=always
337eebb9
LP
29UtmpIdentifier=cons
30TTYPath=/dev/console
31TTYReset=yes
32TTYVHangup=yes
021acbc1 33m4_ifdef(`ENABLE_LOGIND',,
337eebb9 34KillMode=process
021acbc1 35)m4_dnl
337eebb9 36IgnoreSIGPIPE=no
82659fd7 37SendSIGHUP=yes
337eebb9
LP
38
39[Install]
40WantedBy=getty.target