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