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