diff --git a/units/systemd-vconsole-setup.service.in b/units/systemd-vconsole-setup.service.in index a75f72e3aef..96417e19bda 100644 --- a/units/systemd-vconsole-setup.service.in +++ b/units/systemd-vconsole-setup.service.in @@ -19,6 +19,12 @@ Before=initrd-switch-root.target shutdown.target [Service] Type=oneshot +# 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 RemainAfterExit=yes + ExecStart={{ROOTLIBEXECDIR}}/systemd-vconsole-setup + ImportCredential=vconsole.*