All of lore.kernel.org
 help / color / mirror / Atom feed
From: mgrac@sourceware.org <mgrac@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager/src/resources mysql.metadata ...
Date: 20 Sep 2006 08:15:02 -0000	[thread overview]
Message-ID: <20060920081502.9289.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	mgrac at sourceware.org	2006-09-20 08:15:01

Modified files:
	rgmanager/src/resources: mysql.metadata mysql.sh 

Log message:
	Adds possibility to add command line options to MySQL RA. Names of variable in RA's metadata are changed to unify style.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/mysql.metadata.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/mysql.sh.diff?cvsroot=cluster&r1=1.4&r2=1.5

--- cluster/rgmanager/src/resources/mysql.metadata	2006/08/31 13:52:21	1.1
+++ cluster/rgmanager/src/resources/mysql.metadata	2006/09/20 08:15:01	1.2
@@ -20,7 +20,7 @@
 	    <content type="string"/>
         </parameter>
 
-        <parameter name="configFile">
+        <parameter name="config_file">
             <longdesc lang="en">
                 Define configuration file
             </longdesc>
@@ -30,7 +30,7 @@
 	    <content type="string" default="/etc/my.cnf"/>
         </parameter>
 
-        <parameter name="ipAddress">
+        <parameter name="listen_address">
             <longdesc lang="en">
 		Define an IP address for MySQL
             </longdesc>
@@ -41,6 +41,16 @@
             <content type="string"/>
         </parameter>
 
+	<parameter name="mysqld_options">
+		<longdesc lang="en">
+			Other command-line options for httpd
+		</longdesc>
+		<shortdesc lang="en">
+			Other command-line options for httpd
+		</shortdesc>
+		<content type="string" />
+	</parameter>
+
         <parameter name="service_name" inherit="service%name">
             <longdesc lang="en">
 	    	Inherit the service name.  We need to know
--- cluster/rgmanager/src/resources/mysql.sh	2006/09/18 13:48:07	1.4
+++ cluster/rgmanager/src/resources/mysql.sh	2006/09/20 08:15:01	1.5
@@ -46,14 +46,14 @@
 		return $OCF_ERR_ARGS
 	fi
 
-	if [ -z "$OCF_RESKEY_configFile" ]; then
-		clog_check_file_exist $CLOG_FAILED_INVALID "$OCF_RESKEY_configFile"
+	if [ -z "$OCF_RESKEY_config_file" ]; then
+		clog_check_file_exist $CLOG_FAILED_INVALID "$OCF_RESKEY_config_file"
 		clog_service_verify $CLOG_FAILED
 		return $OCF_ERR_ARGS
 	fi
 
-	if [ ! -r "$OCF_RESKEY_configFile" ]; then
-		clog_check_file_exist $CLOG_FAILED_NOT_READABLE $OCF_RESKEY_configFile
+	if [ ! -r "$OCF_RESKEY_config_file" ]; then
+		clog_check_file_exist $CLOG_FAILED_NOT_READABLE $OCF_RESKEY_config_file
 		clog_service_verify $CLOG_FAILED
 		return $OCF_ERR_ARGS
 	fi
@@ -81,8 +81,8 @@
 		return $OCF_ERR_GENERIC
 	fi
 
-	if [ -n "$OCF_RESKEY_ipAddress" ]; then
-		MYSQL_ipAddress="$OCF_RESKEY_ipAddress"
+	if [ -n "$OCF_RESKEY_listen_address" ]; then
+		MYSQL_ipAddress="$OCF_RESKEY_listen_address"
 	else
 		clog_looking_for $CLOG_INIT "IP Address"
 
@@ -107,9 +107,10 @@
 
 	clog_looking_for $CLOG_SUCCEED "IP Address"
 
-	$MYSQL_MYSQLD --defaults-file="$OCF_RESKEY_configFile" \
+	$MYSQL_MYSQLD --defaults-file="$OCF_RESKEY_config_file" \
 		--pid-file="$MYSQL_pid_file" \
-		--bind-address="$MYSQL_ipAddress" > /dev/null 2>&1 &
+		--bind-address="$MYSQL_ipAddress" \
+		$OCF_RESKEY_mysqld_options > /dev/null 2>&1 &
 
 	if [ $? -ne 0 ]; then
 		clog_service_start $CLOG_FAILED



             reply	other threads:[~2006-09-20  8:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-20  8:15 mgrac [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-31 13:52 [Cluster-devel] cluster/rgmanager/src/resources mysql.metadata mgrac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060920081502.9289.qmail@sourceware.org \
    --to=mgrac@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.