cluster/rgmanager/src/resources/utils config-u ...
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
rgmanager/src/resources/utils/config-utils.sh +15 -7
@@ -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/')"
rgmanager/src/resources/utils/messages.sh +1 -1
@@ -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"