]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/container-getty@.service.m4
Merge pull request #12802 from irtimmer/fix-openssl
[thirdparty/systemd.git] / units / container-getty@.service.m4
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
04d39279
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=Container Getty on /dev/pts/%I
8522ee79
AJ
12Documentation=man:agetty(8) man:systemd-getty-generator(8)
13Documentation=man:machinectl(1)
04d39279
LP
14After=systemd-user-sessions.service plymouth-quit-wait.service
15m4_ifdef(`HAVE_SYSV_COMPAT',
45e27532 16After=rc-local.service getty-pre.target
04d39279
LP
17)m4_dnl
18Before=getty.target
19IgnoreOnIsolate=yes
68ac53e6 20ConditionPathExists=/dev/pts/%I
04d39279 21
d32465fb
AJ
22# IgnoreOnIsolate is an issue: when someone isolates rescue.target,
23# tradition expects that we shut down all but the main console.
0d18f808
AJ
24Conflicts=rescue.service
25Before=rescue.service
d32465fb 26
04d39279 27[Service]
db6aedab
NK
28# The '-o' option value tells agetty to replace 'login' arguments with an
29# option to preserve environment (-p), followed by '--' for safety, and then
30# the entered username.
31ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
04d39279
LP
32Type=idle
33Restart=always
34RestartSec=0
e87bc3ef
LP
35UtmpIdentifier=pts/%I
36TTYPath=/dev/pts/%I
04d39279
LP
37TTYReset=yes
38TTYVHangup=yes
39KillMode=process
40IgnoreSIGPIPE=no
41SendSIGHUP=yes