[rabbitmq-discuss] [PATCH 01 of 10] OCF resource agent: use $OCF_FUNCTIONS_DIR
Florian Haas
florian.haas at linbit.com
Tue May 11 18:09:38 BST 2010
# HG changeset patch
# User Florian Haas <florian.haas at linbit.com>
# Date 1273592708 -7200
# Node ID d3292da34f9963c156ea2987cd0a15fd313b61d5
# Parent 2270e05861f9b19a85b934b3a3cfff92ffb88440
OCF resource agent: use $OCF_FUNCTIONS_DIR
Linux-HA introduced the $OCF_FUNCTIONS_DIR variable to make resource
agents executable in-place.
diff -r 2270e05861f9 -r d3292da34f99 packaging/common/rabbitmq-server.ocf
--- a/packaging/common/rabbitmq-server.ocf Fri May 07 17:43:08 2010 +0100
+++ b/packaging/common/rabbitmq-server.ocf Tue May 11 17:45:08 2010 +0200
@@ -49,7 +49,8 @@
#######################################################################
# Initialization:
-. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs
+: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/resource.d/heartbeat}
+. ${OCF_FUNCTIONS_DIR}/.ocf-shellfuncs
#######################################################################
@@ -359,4 +360,4 @@
;;
esac
-exit $?
\ No newline at end of file
+exit $?
More information about the rabbitmq-discuss
mailing list