please find another ocf::heartbeat::mysql patch attached.
i updated the documentation and fixed a variable name. cheers, raoul bhatia -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. [EMAIL PROTECTED] Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. [EMAIL PROTECTED] 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________
--- mysql.orig 2007-10-16 20:57:28.000000000 +0200 +++ mysql 2007-10-16 22:44:47.000000000 +0200 @@ -20,11 +20,24 @@ # See usage() function below for more details... # # OCF instance parameters: -# OCF_RESKEY_mysql_config -# OCF_RESKEY_mysql_datadir -# OCF_RESKEY_mysql_user -# OCF_RESKEY_mysql_group -# OCF_RESKEY_mysql_test_table +# OCF_RESKEY_binary +# +# OCF_RESKEY_config +# OCF_RESKEY_datadir +# +# OCF_RESKEY_user +# OCF_RESKEY_group +# +# OCF_RESKEY_log +# OCF_RESKEY_pid +# OCF_RESKEY_socket +# +# OCF_RESKEY_test_user +# OCF_RESKEY_test_table +# OCF_RESKEY_test_passwd +# +# OCF_RESKEY_enable_creation +# OCF_RESKEY_additional_parameters ####################################################################### # Initialization: @@ -126,6 +139,30 @@ Group running MySQL daemon (for logfile <content type="string" default="mysql"/> </parameter> +<parameter name="log" unique="0" required="0"> +<longdesc lang="en"> +MySQL log file +</longdesc> +<shortdesc lang="en">MySQL log file</shortdesc> +<content type="string" default="/var/log/mysqld.log" /> +</parameter> + +<parameter name="pid" unique="0" required="0"> +<longdesc lang="en"> +MySQL pid file +</longdesc> +<shortdesc lang="en">MySQL pid file</shortdesc> +<content type="string" default="/var/run/mysql/mysqld.pid" /> +</parameter> + +<parameter name="socket" unique="0" required="0"> +<longdesc lang="en"> +MySQL socket +</longdesc> +<shortdesc lang="en">MySQL socket</shortdesc> +<content type="string" default="/var/lib/mysql/mysql.sock" /> +</parameter> + <parameter name="test_table" unique="0" required="0"> <longdesc lang="en"> Table to be tested in monitor statement (in database.table notation) @@ -184,7 +221,7 @@ END mysql_validate() { # checking the parameters if [ ! -f $OCF_RESKEY_config ]; then - ocf_log err "Config $OCF_RESKEY_mysql_config doesn't exist"; + ocf_log err "Config $OCF_RESKEY_config doesn't exist"; exit $OCF_ERR_ARGS; fi
_______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/