]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/serial-getty@.service.m4
sd-bus: if we receive an invalid dbus message, ignore and proceeed
[thirdparty/systemd.git] / units / serial-getty@.service.m4
CommitLineData
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]
11Description=Serial Getty on %I
f5ccf26d 12Documentation=man:agetty(8) man:systemd-getty-generator(8)
00addadd 13Documentation=http://0pointer.de/blog/projects/serial-console.html
7f2cddae 14BindsTo=dev-%i.device
17590254 15After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target
83514a2f 16m4_ifdef(`HAVE_SYSV_COMPAT',
6fdae8a6
DM
17After=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 23Before=getty.target
4771148b 24IgnoreOnIsolate=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
29Conflicts=rescue.service
30Before=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.
36ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
f2b68789 37Type=idle
525ee6f4 38Restart=always
c84ed68f 39UtmpIdentifier=%I
6ea832a2
LP
40TTYPath=/dev/%I
41TTYReset=yes
42TTYVHangup=yes
cd25cce9 43KillMode=process
353e12c2 44IgnoreSIGPIPE=no
82659fd7 45SendSIGHUP=yes
7143555c
ZJS
46
47[Install]
48WantedBy=getty.target