From: mgrac@sourceware.org <mgrac@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager/src/resources apache.sh mysq ...
Date: 26 Sep 2006 23:59:14 -0000 [thread overview]
Message-ID: <20060926235914.23517.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: mgrac at sourceware.org 2006-09-26 23:59:14
Modified files:
rgmanager/src/resources: apache.sh mysql.sh openldap.sh
postgres-8.sh samba.sh
Log message:
Add check if the instance of RA has parent (variable service_name)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/apache.sh.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/mysql.sh.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/openldap.sh.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/postgres-8.sh.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/samba.sh.diff?cvsroot=cluster&r1=1.1&r2=1.2
--- cluster/rgmanager/src/resources/apache.sh 2006/09/20 08:50:12 1.5
+++ cluster/rgmanager/src/resources/apache.sh 2006/09/26 23:59:14 1.6
@@ -53,7 +53,17 @@
verify_all()
{
clog_service_verify $CLOG_INIT
-
+
+ if [ -z "$OCF_RESKEY_name" ]; then
+ clog_service_verify $CLOG_FAILED "Invalid Name Of Service"
+ return $OCF_ERR_ARGS
+ fi
+
+ if [ -z "$OCF_RESKEY_service_name" ]; then
+ clog_service_verify $CLOG_FAILED_NOT_CHILD
+ return $OCF_ERR_ARGS
+ fi
+
if [ -z "$OCF_RESKEY_server_root" ]; then
clog_service_verify $CLOG_FAILED "Invalid ServerRoot"
return $OCF_ERR_ARGS
--- cluster/rgmanager/src/resources/mysql.sh 2006/09/20 08:15:01 1.5
+++ cluster/rgmanager/src/resources/mysql.sh 2006/09/26 23:59:14 1.6
@@ -46,6 +46,11 @@
return $OCF_ERR_ARGS
fi
+ if [ -z "$OCF_RESKEY_service_name" ]; then
+ clog_service_verify $CLOG_FAILED_NOT_CHILD
+ return $OCF_ERR_ARGS
+ fi
+
if [ -z "$OCF_RESKEY_config_file" ]; then
clog_check_file_exist $CLOG_FAILED_INVALID "$OCF_RESKEY_config_file"
clog_service_verify $CLOG_FAILED
--- cluster/rgmanager/src/resources/openldap.sh 2006/09/18 13:48:07 1.3
+++ cluster/rgmanager/src/resources/openldap.sh 2006/09/26 23:59:14 1.4
@@ -46,6 +46,11 @@
return $OCF_ERR_ARGS
fi
+ if [ -z "$OCF_RESKEY_service_name" ]; then
+ clog_service_verify $CLOG_FAILED_NOT_CHILD
+ return $OCF_ERR_ARGS
+ fi
+
if [ -z "$OCF_RESKEY_config_file" ]; then
clog_check_file_exist $CLOG_FAILED_INVALID "$OCF_RESKEY_config_file"
clog_service_verify $CLOG_FAILED
--- cluster/rgmanager/src/resources/postgres-8.sh 2006/09/20 07:14:54 1.1
+++ cluster/rgmanager/src/resources/postgres-8.sh 2006/09/26 23:59:14 1.2
@@ -45,6 +45,11 @@
return $OCF_ERR_ARGS
fi
+ if [ -z "$OCF_RESKEY_service_name" ]; then
+ clog_service_verify $CLOG_FAILED_NOT_CHILD
+ return $OCF_ERR_ARGS
+ fi
+
if [ -z "$OCF_RESKEY_config_file" ]; then
clog_check_file_exist $CLOG_FAILED_INVALID "$OCF_RESKEY_config_file"
clog_service_verify $CLOG_FAILED
--- cluster/rgmanager/src/resources/samba.sh 2006/09/26 23:18:44 1.1
+++ cluster/rgmanager/src/resources/samba.sh 2006/09/26 23:59:14 1.2
@@ -48,6 +48,11 @@
return $OCF_ERR_ARGS
fi
+ if [ -z "$OCF_RESKEY_service_name" ]; then
+ clog_service_verify $CLOG_FAILED_NOT_CHILD
+ return $OCF_ERR_ARGS
+ fi
+
if [ -z "$OCF_RESKEY_config_file" ]; then
clog_check_file_exist $CLOG_FAILED_INVALID "$OCF_RESKEY_config_file"
clog_service_verify $CLOG_FAILED
next reply other threads:[~2006-09-26 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-26 23:59 mgrac [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-29 11:35 [Cluster-devel] cluster/rgmanager/src/resources apache.sh mysq mgrac
2006-09-18 13:48 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=20060926235914.23517.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).