Blob Blame History Raw
From 382efe0f55e9accb30193cbbb80d7c9d423bea25 Mon Sep 17 00:00:00 2001
From: Andrew Beekhof <andrew@beekhof.net>
Date: Tue, 21 Apr 2015 08:04:10 +1000
Subject: [PATCH] Fix: lrmd: Hint to child processes that using sd_notify is
 not required

---
 lrmd/main.c | 6 ++++++
 1 file changed, 6 insertions(+)

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);
 
-- 
1.8.4.2