File bug-931271_pacemaker-systemd-not-exit-on-dbus-disconnect.patch of Package pacemaker.9287
commit 0315c578905378726787c695d7d07188ba97f892
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Tue Mar 24 07:48:51 2015 +1100
Fix: systemd: Kindly ask dbus NOT to kill the process if the dbus connection fails
Index: pacemaker/lib/services/dbus.c
===================================================================
--- pacemaker.orig/lib/services/dbus.c
+++ pacemaker/lib/services/dbus.c
@@ -402,6 +402,7 @@ pcmk_dbus_timeout_toggle(DBusTimeout *ti
/* Inspired by http://www.kolej.mff.cuni.cz/~vesej3am/devel/dbus-select.c */
void pcmk_dbus_connection_setup_with_select(DBusConnection *c){
+ dbus_connection_set_exit_on_disconnect (c, FALSE);
dbus_connection_set_timeout_functions(
c, pcmk_dbus_timeout_add, pcmk_dbus_timeout_remove, pcmk_dbus_timeout_toggle, NULL, NULL);
dbus_connection_set_watch_functions(c, pcmk_dbus_watch_add, pcmk_dbus_watch_remove, NULL, NULL, NULL);