From mboxrd@z Thu Jan 1 00:00:00 1970 From: mgrac@sourceware.org Date: 26 Sep 2006 23:12:39 -0000 Subject: [Cluster-devel] cluster/rgmanager/src/resources/utils config-u ... Message-ID: <20060926231239.7146.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: mgrac at sourceware.org 2006-09-26 23:12:39 Modified files: rgmanager/src/resources/utils: config-utils.sh messages.sh Log message: Adds new function (generate_name_for_pid_dir()). Minor update of messages texts. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/utils/config-utils.sh.diff?cvsroot=cluster&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/utils/messages.sh.diff?cvsroot=cluster&r1=1.1&r2=1.2 --- cluster/rgmanager/src/resources/utils/config-utils.sh 2006/09/18 13:48:07 1.2 +++ cluster/rgmanager/src/resources/utils/config-utils.sh 2006/09/26 23:12:38 1.3 @@ -30,13 +30,11 @@ # # "$1" was created from the "$2" # -# This template configuration was automatically generated, and will -# be automatically regenerated if removed. Please modify this file to -# speficy subdirectories and/or client access permissions. -# -# Once this file has been altered, automatic re-generation will stop. -# Remember to copy this file to all other cluster members after making -# changes, or your service will not operate correctly. +# This template configuration was automatically generated, and will be +# automatically regenerated if removed. Once this file has been altered, +# automatic re-generation will stop. Remember to copy this file to all +# other cluster members after making changes, or your service will not +# operate correctly. # EOT } @@ -227,6 +225,16 @@ return 0; } +generate_name_for_pid_dir() +{ + declare filename=$(basename $0) + + echo "$RA_COMMON_pid_dir/$(basename $0 | sed 's/^\(.*\)\..*/\1/')/$OCF_RESOURCE_INSTANCE" + + return 0; +} + + create_pid_directory() { declare program_name="$(basename $0 | sed 's/^\(.*\)\..*/\1/')" --- cluster/rgmanager/src/resources/utils/messages.sh 2006/08/31 13:52:21 1.1 +++ cluster/rgmanager/src/resources/utils/messages.sh 2006/09/26 23:12:38 1.2 @@ -110,7 +110,7 @@ { case $1 in $CLOG_INIT) - ocf_log info "Verifying Configuration Of $OCF_RESOURCE_INSTANCE" + ocf_log debug "Verifying Configuration Of $OCF_RESOURCE_INSTANCE" ;; $CLOG_SUCCEED) ocf_log debug "Verifying Configuration Of $OCF_RESOURCE_INSTANCE > Succeed"