]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/container-getty@.service.m4
travis: turn on nonnull-attribute on Fuzzit
[thirdparty/systemd.git] / units / container-getty@.service.m4
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
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]
11 Description=Container Getty on /dev/pts/%I
12 Documentation=man:agetty(8) man:systemd-getty-generator(8)
13 Documentation=man:machinectl(1)
14 After=systemd-user-sessions.service plymouth-quit-wait.service
15 m4_ifdef(`HAVE_SYSV_COMPAT',
16 After=rc-local.service getty-pre.target
17 )m4_dnl
18 Before=getty.target
19 IgnoreOnIsolate=yes
20 ConditionPathExists=/dev/pts/%I
21
22 # IgnoreOnIsolate is an issue: when someone isolates rescue.target,
23 # tradition expects that we shut down all but the main console.
24 Conflicts=rescue.service
25 Before=rescue.service
26
27 [Service]
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.
31 ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
32 Type=idle
33 Restart=always
34 RestartSec=0
35 UtmpIdentifier=pts/%I
36 TTYPath=/dev/pts/%I
37 TTYReset=yes
38 TTYVHangup=yes
39 KillMode=process
40 IgnoreSIGPIPE=no
41 SendSIGHUP=yes