diff options
Diffstat (limited to 'patches/systemd-20/0005-dbus-fix-system-handling.patch')
-rw-r--r-- | patches/systemd-20/0005-dbus-fix-system-handling.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/systemd-20/0005-dbus-fix-system-handling.patch b/patches/systemd-20/0005-dbus-fix-system-handling.patch new file mode 100644 index 000000000..ff097b520 --- /dev/null +++ b/patches/systemd-20/0005-dbus-fix-system-handling.patch @@ -0,0 +1,30 @@ +From 88a053f041a07c75d5395261524b5cf695284430 Mon Sep 17 00:00:00 2001 +From: Robert Schwebel <r.schwebel@pengutronix.de> +Date: Thu, 14 Oct 2010 17:53:07 +0200 +Subject: [PATCH] dbus: fix --system handling + +We currently only create the private D-Bus server when pid == 1, but +this has also to be done if the user started us with --system. +Otherwhise we get this error: + + systemd-cgroups-agent[164]: Failed to get D-Bus connection: + Failed to connect to socket /org/freedesktop/systemd1/private: Connection refused + +Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> +--- + src/dbus.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: systemd-18/src/dbus.c +=================================================================== +--- systemd-18.orig/src/dbus.c ++++ systemd-18/src/dbus.c +@@ -952,7 +952,7 @@ static int bus_init_private(Manager *m) + return 0; + + /* We want the private bus only when running as init */ +- if (getpid() != 1) ++ if (m->running_as != MANAGER_SYSTEM) + return 0; + + if (!(m->private_bus = dbus_server_listen("unix:abstract=/org/freedesktop/systemd1/private", &error))) { |