]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/serial-getty@.service.m4
hashmap: avoid using TLS in a destructor
[thirdparty/systemd.git] / units / serial-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=Serial Getty on %I
12 Documentation=man:agetty(8) man:systemd-getty-generator(8)
13 Documentation=http://0pointer.de/blog/projects/serial-console.html
14 BindsTo=dev-%i.device
15 After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
16 m4_ifdef(`HAVE_SYSV_COMPAT',
17 After=rc-local.service
18 )m4_dnl
19
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.
23 Before=getty.target
24 IgnoreOnIsolate=yes
25
26 # IgnoreOnIsolate causes issues with sulogin, if someone isolates
27 # rescue.target or starts rescue.service from multi-user.target or
28 # graphical.target.
29 Conflicts=rescue.service
30 Before=rescue.service
31
32 [Service]
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
37 Type=idle
38 Restart=always
39 UtmpIdentifier=%I
40 TTYPath=/dev/%I
41 TTYReset=yes
42 TTYVHangup=yes
43 KillMode=process
44 IgnoreSIGPIPE=no
45 SendSIGHUP=yes
46
47 [Install]
48 WantedBy=getty.target