From 47ac01b78df38481be4630ec8cddb65a033e0bb2 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 1 May 2018 14:01:26 -0400 Subject: [PATCH] bus: Mark service as wanting nss-user-lookup.target D-Bus needs to be able to resolve usernames when reading message bus configuration files. Thus, it should be ordered *after* the special `nss-user-lookup.target`, which is a synchronization point for units that provide/require lookup services. We use `Wants=` here so that we still try to keep on going even if we fail to reach the target. --- bus/dbus.service.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bus/dbus.service.in b/bus/dbus.service.in index 3713810b..0f49c9e2 100644 --- a/bus/dbus.service.in +++ b/bus/dbus.service.in @@ -2,6 +2,8 @@ Description=D-Bus System Message Bus Documentation=man:dbus-daemon(1) Requires=dbus.socket +After=nss-user-lookup.target +Wants=nss-user-lookup.target [Service] Type=notify -- 2.14.3