From 08574f27ed640aaa5f73d69112d41339424c63c4 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 14 Oct 2016 13:03:48 +0200 Subject: [PATCH] dbus.service.in: Allow D-Bus to start during early boot An early boot (before basic.target) service that tries to talk to D-Bus currently causes a deadlock: dbus.socket is (most likely) already active, so the client can connect to it, but dbus.service does not start until after basic.target. Thus the D-Bus client gets the 25s timeout for every call. D-Bus has very few dependencies, so allow it to start during early boot already (if something connects to it) by dropping the DefaultDependencies and thus the After=basic.target. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98254 --- bus/dbus.service.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bus/dbus.service.in b/bus/dbus.service.in index ca0b7e9..171da5a 100644 --- a/bus/dbus.service.in +++ b/bus/dbus.service.in @@ -1,6 +1,11 @@ [Unit] Description=D-Bus System Message Bus Documentation=man:dbus-daemon(1) +DefaultDependencies=no +Conflicts=shutdown.target +Before=shutdown.target +After=local-fs.target +RequiresMountsFor=/var/lib/dbus Requires=dbus.socket [Service] -- 2.9.3