File pacemaker-execd-handle-systemd-actions-correctly-when-used-with-service.patch of Package pacemaker.14850
commit dc2ba07410614c5d4787115d8691122bb3a1d5c9
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Mon May 7 12:15:24 2018 -0500
Fix: execd: handle systemd actions correctly when used with "service:"
Previously, this would incorrectly attempt to determine the standard of
"service" rather than the resource type. That would lead to not properly
waiting for starts and stops of systemd units to complete, and to logging
a spurious warning for upstart jobs.
Index: pacemaker-1.1.18+20180430.b12c320f5/lrmd/lrmd.c
===================================================================
--- pacemaker-1.1.18+20180430.b12c320f5.orig/lrmd/lrmd.c
+++ pacemaker-1.1.18+20180430.b12c320f5/lrmd/lrmd.c
@@ -782,7 +782,7 @@ action_complete(svc_action_t * action)
rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL;
if (rsc && safe_str_eq(rsc->class, PCMK_RESOURCE_CLASS_SERVICE)) {
- rclass = resources_find_service_class(rsc->class);
+ rclass = resources_find_service_class(rsc->type);
} else if(rsc) {
rclass = rsc->class;
}