File bug-931271_pacemaker-reconnect-to-dbus.patch of Package pacemaker.9287

commit 09351c2c323599f3dfecd8ec1e957300576fcd0b
Author: Gao,Yan <ygao@suse.com>
Date:   Mon Oct 26 18:21:39 2015 +0100

    Fix: systemd: Reconnect to System DBus if the connection is closed

diff --git a/lib/services/systemd.c b/lib/services/systemd.c
index ca56915..5095cc0 100644
--- a/lib/services/systemd.c
+++ b/lib/services/systemd.c
@@ -78,6 +78,14 @@ systemd_init(void)
     static int need_init = 1;
     /* http://dbus.freedesktop.org/doc/api/html/group__DBusConnection.html */
 
+    if (systemd_proxy
+        && dbus_connection_get_is_connected(systemd_proxy) == FALSE) {
+        crm_warn("Connection to System DBus is closed. Reconnecting...");
+        pcmk_dbus_disconnect(systemd_proxy);
+        systemd_proxy = NULL;
+        need_init = 1;
+    }
+
     if (need_init) {
         need_init = 0;
         systemd_proxy = pcmk_dbus_connect();
openSUSE Build Service is sponsored by