From: Zbigniew Jędrzejewski-Szmek Date: Wed, 26 Feb 2014 02:26:31 +0000 (-0500) Subject: Use /var/run/dbus/system_bus_socket for the D-Bus socket X-Git-Tag: v211~196 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1ae383a8a3ae4824453e297352fda603d2d3fd5e;p=elogind.git Use /var/run/dbus/system_bus_socket for the D-Bus socket --- diff --git a/man/systemd-bus-proxyd@.service.xml b/man/systemd-bus-proxyd@.service.xml index 75a3c8bc4..3a5930d57 100644 --- a/man/systemd-bus-proxyd@.service.xml +++ b/man/systemd-bus-proxyd@.service.xml @@ -59,7 +59,7 @@ along with systemd; If not, see . systemd-bus-proxyd.socket will launch systemd-bus-proxyd@.service for connections to the classic D-Bus socket in - /run/dbus/system_bus_socket. + /var/run/dbus/system_bus_socket. systemd-bus-proxyd@.service is launched for an existing D-Bus connection and will use diff --git a/src/libsystemd/sd-bus/PORTING-DBUS1 b/src/libsystemd/sd-bus/PORTING-DBUS1 index 90d184b78..0253a4213 100644 --- a/src/libsystemd/sd-bus/PORTING-DBUS1 +++ b/src/libsystemd/sd-bus/PORTING-DBUS1 @@ -536,7 +536,7 @@ parameter. Client libraries should use the following connection string when connecting to the system bus: - kernel:path=/dev/kdbus/0-system/bus;unix:path=/run/dbus/system_bus_socket + kernel:path=/dev/kdbus/0-system/bus;unix:path=/var/run/dbus/system_bus_socket This will ensure that kdbus is preferred over the legacy AF_UNIX socket, but compatibility is kept. For the user bus use: diff --git a/src/shared/def.h b/src/shared/def.h index 7777756aa..aa489d80d 100644 --- a/src/shared/def.h +++ b/src/shared/def.h @@ -61,7 +61,7 @@ "/usr/lib/kbd/keymaps/\0" #endif -#define UNIX_SYSTEM_BUS_PATH "unix:path=/run/dbus/system_bus_socket" +#define UNIX_SYSTEM_BUS_PATH "unix:path=/var/run/dbus/system_bus_socket" #define KERNEL_SYSTEM_BUS_PATH "kernel:path=/dev/kdbus/0-system/bus" #ifdef ENABLE_KDBUS diff --git a/units/systemd-bus-proxyd.socket b/units/systemd-bus-proxyd.socket index 406e15b5d..6c42d388b 100644 --- a/units/systemd-bus-proxyd.socket +++ b/units/systemd-bus-proxyd.socket @@ -9,5 +9,5 @@ Description=Legacy D-Bus Protocol Compatibility Socket [Socket] -ListenStream=/run/dbus/system_bus_socket +ListenStream=/var/run/dbus/system_bus_socket Accept=yes