]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
93a45c56 LP |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
93a45c56 LP |
8 | # (at your option) any later version. |
9 | ||
10 | [Unit] | |
11 | Description=Serial Getty on %I | |
f5ccf26d | 12 | Documentation=man:agetty(8) man:systemd-getty-generator(8) |
00addadd | 13 | Documentation=http://0pointer.de/blog/projects/serial-console.html |
7f2cddae | 14 | BindsTo=dev-%i.device |
17590254 | 15 | After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target |
83514a2f | 16 | m4_ifdef(`HAVE_SYSV_COMPAT', |
6fdae8a6 DM |
17 | After=rc-local.service |
18 | )m4_dnl | |
93a45c56 | 19 | |
c84ed68f LP |
20 | # If additional gettys are spawned during boot then we should make |
21 | # sure that this is synchronized before getty.target, even though | |
22 | # getty.target didn't actually pull it in. | |
93a45c56 | 23 | Before=getty.target |
4771148b | 24 | IgnoreOnIsolate=yes |
93a45c56 | 25 | |
9aeac5c6 FB |
26 | # IgnoreOnIsolate causes issues with sulogin, if someone isolates |
27 | # rescue.target or starts rescue.service from multi-user.target or | |
28 | # graphical.target. | |
0d18f808 AJ |
29 | Conflicts=rescue.service |
30 | Before=rescue.service | |
9aeac5c6 | 31 | |
93a45c56 | 32 | [Service] |
db6aedab NK |
33 | # The '-o' option value tells agetty to replace 'login' arguments with an |
34 | # option to preserve environment (-p), followed by '--' for safety, and then | |
35 | # the entered username. | |
36 | ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM | |
f2b68789 | 37 | Type=idle |
525ee6f4 | 38 | Restart=always |
c84ed68f | 39 | UtmpIdentifier=%I |
6ea832a2 LP |
40 | TTYPath=/dev/%I |
41 | TTYReset=yes | |
42 | TTYVHangup=yes | |
cd25cce9 | 43 | KillMode=process |
353e12c2 | 44 | IgnoreSIGPIPE=no |
82659fd7 | 45 | SendSIGHUP=yes |
7143555c ZJS |
46 | |
47 | [Install] | |
48 | WantedBy=getty.target |