|
|
4531df |
From d62d8776df8aaa1da32e8452b3816505d1ea1f7f Mon Sep 17 00:00:00 2001
|
|
|
4531df |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
4531df |
Date: Wed, 28 Oct 2020 15:06:47 +0100
|
|
|
4531df |
Subject: [PATCH] sybaseASE: add logfile parameter
|
|
|
4531df |
|
|
|
4531df |
---
|
|
|
4531df |
heartbeat/sybaseASE.in | 19 ++++++++++++++++++-
|
|
|
4531df |
1 file changed, 18 insertions(+), 1 deletion(-)
|
|
|
4531df |
|
|
|
4531df |
diff --git a/heartbeat/sybaseASE.in b/heartbeat/sybaseASE.in
|
|
|
4531df |
index 7ff30bd31..fef76474e 100755
|
|
|
4531df |
--- a/heartbeat/sybaseASE.in
|
|
|
4531df |
+++ b/heartbeat/sybaseASE.in
|
|
|
4531df |
@@ -115,6 +115,13 @@ fi
|
|
|
4531df |
interfaces_file_default="${OCF_RESKEY_sybase_home}/interfaces"
|
|
|
4531df |
: ${OCF_RESKEY_interfaces_file=${interfaces_file_default}}
|
|
|
4531df |
|
|
|
4531df |
+if [ $__OCF_ACTION != "meta-data" ]; then
|
|
|
4531df |
+ logfile_default="$OCF_RESKEY_sybase_home/$OCF_RESKEY_sybase_ase/install/$OCF_RESKEY_server_name.log"
|
|
|
4531df |
+else
|
|
|
4531df |
+ logfile_default="detect"
|
|
|
4531df |
+fi
|
|
|
4531df |
+: ${OCF_RESKEY_logfile=${logfile_default}}
|
|
|
4531df |
+
|
|
|
4531df |
export LD_POINTER_GUARD=0
|
|
|
4531df |
|
|
|
4531df |
#######################################################################################
|
|
|
4531df |
@@ -122,7 +129,7 @@ export LD_POINTER_GUARD=0
|
|
|
4531df |
#######################################################################################
|
|
|
4531df |
declare login_string=""
|
|
|
4531df |
declare RUNSERVER_SCRIPT=$OCF_RESKEY_sybase_home/$OCF_RESKEY_sybase_ase/install/RUN_$OCF_RESKEY_server_name
|
|
|
4531df |
-declare CONSOLE_LOG=$OCF_RESKEY_sybase_home/$OCF_RESKEY_sybase_ase/install/$OCF_RESKEY_server_name.log
|
|
|
4531df |
+declare CONSOLE_LOG="$OCF_RESKEY_logfile"
|
|
|
4531df |
|
|
|
4531df |
##################################################################################################
|
|
|
4531df |
# This function will be called by Pacemaker to get the meta data of resource agent "sybaseASE". #
|
|
|
4531df |
@@ -223,6 +230,16 @@ meta_data()
|
|
|
4531df |
<content type="string"/>
|
|
|
4531df |
</parameter>
|
|
|
4531df |
|
|
|
4531df |
+ <parameter name="logfile">
|
|
|
4531df |
+ <longdesc lang="en">
|
|
|
4531df |
+ Logfile
|
|
|
4531df |
+ </longdesc>
|
|
|
4531df |
+ <shortdesc lang="en">
|
|
|
4531df |
+ Logfile
|
|
|
4531df |
+ </shortdesc>
|
|
|
4531df |
+ <content type="string" default="$logfile_default" />
|
|
|
4531df |
+ </parameter>
|
|
|
4531df |
+
|
|
|
4531df |
</parameters>
|
|
|
4531df |
|
|
|
4531df |
<actions>
|