systemd/debian/extra/units/getty-static.service
Michael Biebl ec74429dbe getty-static.service: Skip if dbus-broker is installed
Check for the binary in /usr/bin as this makes it easier to move the
service files from /lib/systemd to /usr/lib/systemd.
2020-12-26 13:33:06 +01:00

11 lines
366 B
Desktop File

[Unit]
Description=getty on tty2-tty6 if dbus and logind are not available
ConditionPathExists=/dev/tty0
ConditionPathExists=!/usr/bin/dbus-daemon
ConditionPathExists=!/usr/bin/dbus-broker
[Service]
Type=oneshot
ExecStart=systemctl --no-block start getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service
RemainAfterExit=true