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