File bug-1059187_pacemaker-libservice-systemd-service-reloading-OK.patch of Package pacemaker.14737
commit 898d30113adc366854dbffd402962e9bcc6337ae
Author: Patrick Hemmer <phemmer@chewy.com>
Date: Tue Nov 29 13:56:44 2016 -0500
Low: libservices: treat systemd service reloading as OK
Previously if pacemaker performed a monitor operation while a service was
reloading, pacemaker treated it as if the service were stopped/failed.
diff --git a/lib/services/systemd.c b/lib/services/systemd.c
index e6e11147b..ea0136505 100644
--- a/lib/services/systemd.c
+++ b/lib/services/systemd.c
@@ -552,6 +552,8 @@ systemd_unit_check(const char *name, const char *state, void *userdata)
} else if (g_strcmp0(state, "active") == 0) {
op->rc = PCMK_OCF_OK;
+ } else if (g_strcmp0(state, "reloading") == 0) {
+ op->rc = PCMK_OCF_OK;
} else if (g_strcmp0(state, "activating") == 0) {
op->rc = PCMK_OCF_PENDING;
} else if (g_strcmp0(state, "deactivating") == 0) {