]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
a7df2d1e | 2 | # |
97c4a07d 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 | |
97c4a07d LP |
8 | # (at your option) any later version. |
9 | ||
10 | [Unit] | |
3b2321f6 | 11 | Description=Virtual Console Setup |
4aa6e778 | 12 | Documentation=man:systemd-vconsole-setup.service(8) man:vconsole.conf(5) |
4e66876d ZJS |
13 | |
14 | ConditionPathExists=/dev/tty0 | |
15 | ||
97c4a07d | 16 | DefaultDependencies=no |
a6f3a7eb | 17 | Before=sysinit.target |
750e550e | 18 | Before=initrd-switch-root.target shutdown.target |
97c4a07d | 19 | |
47041767 ZJS |
20 | # This unit will be restarted by udev whenever a new vtcon device appears or is |
21 | # triggered. Usually that happens just a handful of times during boot, but some | |
22 | # systems may have hundreds or thousands of serial consoles connected, so let's | |
23 | # just disable the limit altogether. | |
24 | StartLimitIntervalSec=0 | |
25 | ||
97c4a07d LP |
26 | [Service] |
27 | Type=oneshot | |
8623dab8 ZJS |
28 | # This service will be restarted by udev whenever a new vtcon device appears. |
29 | # If the previous instance is still running, it shall be interrupted without | |
30 | # error. | |
31 | SuccessExitStatus=SIGTERM | |
9fd32ff7 | 32 | RemainAfterExit=yes |
8623dab8 | 33 | |
b0d3095f | 34 | ExecStart={{LIBEXECDIR}}/systemd-vconsole-setup |
8623dab8 | 35 | |
1ab6ae19 | 36 | ImportCredential=vconsole.* |