]>
Commit | Line | Data |
---|---|---|
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] | |
9 | Description=Container Getty on /dev/pts/%I | |
8522ee79 AJ |
10 | Documentation=man:agetty(8) man:systemd-getty-generator(8) |
11 | Documentation=man:machinectl(1) | |
04d39279 LP |
12 | After=systemd-user-sessions.service plymouth-quit-wait.service |
13 | m4_ifdef(`HAVE_SYSV_COMPAT', | |
14 | After=rc-local.service | |
15 | )m4_dnl | |
16 | Before=getty.target | |
17 | IgnoreOnIsolate=yes | |
68ac53e6 | 18 | ConditionPathExists=/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. | |
22 | Conflicts=rescue.service | |
23 | Before=rescue.service | |
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. | |
29 | ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud pts/%I 115200,38400,9600 $TERM | |
04d39279 LP |
30 | Type=idle |
31 | Restart=always | |
32 | RestartSec=0 | |
e87bc3ef LP |
33 | UtmpIdentifier=pts/%I |
34 | TTYPath=/dev/pts/%I | |
04d39279 LP |
35 | TTYReset=yes |
36 | TTYVHangup=yes | |
37 | KillMode=process | |
38 | IgnoreSIGPIPE=no | |
39 | SendSIGHUP=yes |