Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
pacemaker.9287
bug-931271_pacemaker-reconnect-to-dbus.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor