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