update
This commit is contained in:
@@ -764,6 +764,23 @@ REPLCHECK(){
|
||||
[ "${timeout}" == "true" ] && touch ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.timeout || touch ${NM_TMPFOLDER}/repl.${rcheck}.${nip}.good
|
||||
}
|
||||
|
||||
REPLSTART(){
|
||||
NODETYPE=${1}
|
||||
PH=${NODETYPE}_HOSTS[0]
|
||||
if [ ! -f ${NM_FOLDER}/${!PH}.down ]; then
|
||||
PH_CMD="ssh root@${!PH}"
|
||||
var=${NODETYPE}_REPL_CHECK[@]
|
||||
if [ ! -z ${!var+x} ]; then
|
||||
for rcheck in "${!var}"; do
|
||||
${PH_CMD} rm -f ${NM_FOLDER}/test.repl
|
||||
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||
${PH_CMD} "echo -e \"Replcation-Test\n${daterun}\" > ${NM_REPL_CHECK_LOC[${rcheck}]}/test.repl" &
|
||||
${PH_CMD} 'find ${NM_REPL_CHECK_LOC[${rcheck}]} -iname "*.sync-conflict-*" -exec rm {} \;' &
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
STATUS_SCANTIMES(){
|
||||
scandefault=200
|
||||
while [ $# -gt 0 ]; do
|
||||
|
||||
Reference in New Issue
Block a user