pacemaker/bug-995365_pacemaker-cts-restart-systemd-journald.patch
Yan Gao e3d978ecb2 Accepting request 423643 from home:yan_gao:branches:network:ha-clustering:Factory:Test
- cts: Restart systemd-journald with "systemctl restart systemd-journald.socket" (bsc#995365)
  * bug-995365_pacemaker-cts-restart-systemd-journald.patch

OBS-URL: https://build.opensuse.org/request/show/423643
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=253
2016-08-29 10:31:30 +00:00

18 lines
1012 B
Diff

Index: pacemaker/cts/CTSaudits.py
===================================================================
--- pacemaker.orig/cts/CTSaudits.py
+++ pacemaker/cts/CTSaudits.py
@@ -67,10 +67,8 @@ class LogAudit(ClusterAudit):
for node in nodes:
if self.CM.Env["have_systemd"]:
- if self.CM.rsh(node, "systemctl stop systemd-journald.socket") != 0:
- self.CM.log ("ERROR: Cannot stop 'systemd-journald' on %s" % node)
- if self.CM.rsh(node, "systemctl start systemd-journald.service") != 0:
- self.CM.log ("ERROR: Cannot start 'systemd-journald' on %s" % node)
+ if self.CM.rsh(node, "systemctl restart systemd-journald.socket") != 0:
+ self.CM.log ("ERROR: Cannot restart 'systemd-journald' on %s" % node)
if self.CM.rsh(node, "service %s restart" % self.CM.Env["syslogd"]) != 0:
self.CM.log ("ERROR: Cannot restart '%s' on %s" % (self.CM.Env["syslogd"], node))