File bug-956626_pacemaker-lrmd-dont-use-sd_notify-in-children.patch of Package pacemaker.9287
commit 382efe0f55e9accb30193cbbb80d7c9d423bea25
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Tue Apr 21 08:04:10 2015 +1000
Fix: lrmd: Hint to child processes that using sd_notify is not required
diff --git a/lrmd/main.c b/lrmd/main.c
index 4c588be..636cf44 100644
--- a/lrmd/main.c
+++ b/lrmd/main.c
@@ -312,6 +312,12 @@ main(int argc, char **argv)
}
}
+ /* The presence of this variable allegedly controls whether child
+ * processes like httpd will try and use Systemd's sd_notify
+ * API
+ */
+ unsetenv("NOTIFY_SOCKET");
+
/* Used by RAs - Leave owned by root */
crm_build_path(CRM_RSCTMP_DIR, 0755);