2020-11-09 13:23:58 +09:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 17:35:03 +01:00
|
|
|
#
|
2010-09-16 00:36:41 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
|
#
|
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2010-09-16 00:36:41 +02:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
[Unit]
|
2023-05-31 15:59:11 +02:00
|
|
|
Description=Virtual Console Setup
|
2012-06-25 12:00:43 +02:00
|
|
|
Documentation=man:systemd-vconsole-setup.service(8) man:vconsole.conf(5)
|
2022-09-15 15:54:18 +02:00
|
|
|
|
|
|
|
|
ConditionPathExists=/dev/tty0
|
|
|
|
|
|
2010-09-16 00:36:41 +02:00
|
|
|
DefaultDependencies=no
|
2023-05-19 15:58:18 +02:00
|
|
|
Before=sysinit.target
|
2017-01-31 00:34:33 -05:00
|
|
|
Before=initrd-switch-root.target shutdown.target
|
2010-09-16 00:36:41 +02:00
|
|
|
|
2023-11-25 13:27:17 +01:00
|
|
|
# This unit will be restarted by udev whenever a new vtcon device appears or is
|
|
|
|
|
# triggered. Usually that happens just a handful of times during boot, but some
|
|
|
|
|
# systems may have hundreds or thousands of serial consoles connected, so let's
|
|
|
|
|
# just disable the limit altogether.
|
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
2010-09-16 00:36:41 +02:00
|
|
|
[Service]
|
|
|
|
|
Type=oneshot
|
2023-07-13 10:22:54 +02:00
|
|
|
# This service will be restarted by udev whenever a new vtcon device appears.
|
|
|
|
|
# If the previous instance is still running, it shall be interrupted without
|
|
|
|
|
# error.
|
|
|
|
|
SuccessExitStatus=SIGTERM
|
2020-03-05 07:11:09 +01:00
|
|
|
RemainAfterExit=yes
|
2023-07-13 10:22:54 +02:00
|
|
|
|
2023-06-12 02:15:19 +01:00
|
|
|
ExecStart={{LIBEXECDIR}}/systemd-vconsole-setup
|
2023-07-13 10:22:54 +02:00
|
|
|
|
2023-06-08 14:09:36 +02:00
|
|
|
ImportCredential=vconsole.*
|