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