File pacemaker-mcp-sysconfig-doc-2.patch of Package pacemaker.3577

commit 60bf2282a23f2ad1f57973896b9fd8f895b95344
Author: Ferenc Wágner <wferi@niif.hu>
Date:   Thu Feb 11 00:56:58 2016 +0100

    Auto-export the init script variables read from the config file
    
    Signed-off-by: Ferenc Wágner <wferi@niif.hu>

diff --git a/lrmd/pacemaker_remote.in b/lrmd/pacemaker_remote.in
index ba89087..cc64a09 100644
--- a/lrmd/pacemaker_remote.in
+++ b/lrmd/pacemaker_remote.in
@@ -60,13 +60,17 @@ status()
 # rpm based distros
 if [ -d @sysconfdir@/sysconfig ]; then
 	[ -f @INITDIR@/functions ] && . @INITDIR@/functions
+	set -a
 	[ -f @sysconfdir@/sysconfig/pacemaker ] && . @sysconfdir@/sysconfig/pacemaker
+	set +a
 	[ -z "$LOCK_FILE" ] && LOCK_FILE="@localstatedir@/lock/subsys/pacemaker_remote"
 fi
 
 # deb based distros
 if [ -d @sysconfdir@/default ]; then
+	set -a
 	[ -f @sysconfdir@/default/pacemaker ] && . @sysconfdir@/default/pacemaker
+	set +a
 	[ -z "$LOCK_FILE" ] && LOCK_FILE="@localstatedir@/lock/pacemaker_remote"
 fi
 
diff --git a/mcp/pacemaker.sysconfig b/mcp/pacemaker.sysconfig
index 28b8588..d76ccb2 100644
--- a/mcp/pacemaker.sysconfig
+++ b/mcp/pacemaker.sysconfig
@@ -1,5 +1,3 @@
-# For non-systemd based systems, prefix export to each enabled line
-
 # Turn on special handling for CMAN clusters in the init script
 # Without this, fenced (and by inference, cman) cannot reliably be made to shut down
 # PCMK_STACK=cman
openSUSE Build Service is sponsored by