]>
Commit | Line | Data |
---|---|---|
f220d83c LP |
1 | <?xml version="1.0"?> |
2 | <!--*-nxml-*--> | |
12b42c76 | 3 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
0307f791 | 4 | <!-- SPDX-License-Identifier: LGPL-2.1+ --> |
f220d83c LP |
5 | <refentry id="systemd-getty-generator"> |
6 | ||
798d3a52 ZJS |
7 | <refentryinfo> |
8 | <title>systemd-getty-generator</title> | |
9 | <productname>systemd</productname> | |
798d3a52 | 10 | </refentryinfo> |
f220d83c | 11 | |
798d3a52 ZJS |
12 | <refmeta> |
13 | <refentrytitle>systemd-getty-generator</refentrytitle> | |
14 | <manvolnum>8</manvolnum> | |
15 | </refmeta> | |
f220d83c | 16 | |
798d3a52 ZJS |
17 | <refnamediv> |
18 | <refname>systemd-getty-generator</refname> | |
19 | <refpurpose>Generator for enabling getty instances on the | |
20 | console</refpurpose> | |
21 | </refnamediv> | |
f220d83c | 22 | |
798d3a52 | 23 | <refsynopsisdiv> |
12b42c76 | 24 | <para><filename>/usr/lib/systemd/system-generators/systemd-getty-generator</filename></para> |
798d3a52 | 25 | </refsynopsisdiv> |
f220d83c | 26 | |
798d3a52 ZJS |
27 | <refsect1> |
28 | <title>Description</title> | |
f220d83c | 29 | |
798d3a52 ZJS |
30 | <para><filename>systemd-getty-generator</filename> is a generator |
31 | that automatically instantiates | |
8522ee79 AJ |
32 | <filename>serial-getty@.service</filename> on the kernel |
33 | console(s), if they can function as ttys and are not provided by | |
34 | the virtual console subsystem. It will also instantiate | |
798d3a52 ZJS |
35 | <filename>serial-getty@.service</filename> instances for |
36 | virtualizer consoles, if execution in a virtualized environment is | |
8522ee79 AJ |
37 | detected. If execution in a container environment is detected, it |
38 | will instead enable <filename>console-getty.service</filename> for | |
39 | <filename>/dev/console</filename>, and | |
798d3a52 ZJS |
40 | <filename>container-getty@.service</filename> instances for |
41 | additional container pseudo TTYs as requested by the container | |
42 | manager (see <ulink | |
28a0ad81 | 43 | url="https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/"><filename>Container |
798d3a52 ZJS |
44 | Interface</filename></ulink>). This should ensure that the user is |
45 | shown a login prompt at the right place, regardless of which | |
46 | environment the system is started in. For example, it is | |
47 | sufficient to redirect the kernel console with a kernel command | |
48 | line argument such as <varname>console=</varname> to get both | |
49 | kernel messages and a getty prompt on a serial TTY. See <ulink | |
3c887f97 | 50 | url="https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt"><filename>kernel-parameters.txt</filename></ulink> |
798d3a52 ZJS |
51 | for more information on the <varname>console=</varname> kernel |
52 | parameter.</para> | |
f220d83c | 53 | |
b1c1a519 ZC |
54 | <para><filename>systemd-getty-generator</filename> implements |
55 | <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para> | |
00addadd | 56 | |
8522ee79 AJ |
57 | <para>Further information about configuration of gettys can be |
58 | found in | |
798d3a52 ZJS |
59 | <ulink url="http://0pointer.de/blog/projects/serial-console.html">systemd |
60 | for Administrators, Part XVI: Gettys on Serial Consoles (and | |
61 | Elsewhere)</ulink>.</para> | |
62 | </refsect1> | |
f220d83c | 63 | |
798d3a52 ZJS |
64 | <refsect1> |
65 | <title>See Also</title> | |
66 | <para> | |
67 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
68 | <citerefentry project='man-pages'><refentrytitle>agetty</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
69 | </para> | |
70 | </refsect1> | |
f220d83c LP |
71 | |
72 | </refentry> |