]> git.proxmox.com Git - systemd.git/commitdiff
getty-static.service: Skip if dbus-broker is installed
authorMichael Biebl <biebl@debian.org>
Sat, 26 Dec 2020 12:33:06 +0000 (13:33 +0100)
committerMichael Biebl <biebl@debian.org>
Sat, 26 Dec 2020 12:33:06 +0000 (13:33 +0100)
Check for the binary in /usr/bin as this makes it easier to move the
service files from /lib/systemd to /usr/lib/systemd.

debian/extra/units/getty-static.service

index 275408b9ff0e35d9e8d5a1bbe5981975532bc389..25c5c72084e90ef9ea5549ac824abffd7a14cc94 100644 (file)
@@ -1,7 +1,8 @@
 [Unit]
 Description=getty on tty2-tty6 if dbus and logind are not available
 ConditionPathExists=/dev/tty0
-ConditionPathExists=!/lib/systemd/system/dbus.service
+ConditionPathExists=!/usr/bin/dbus-daemon
+ConditionPathExists=!/usr/bin/dbus-broker
 
 [Service]
 Type=oneshot