📄 testheartbeatcomm.in
字号:
#!/bin/sh# The purpose of this script is to break or fix the communication in the cluster.#HADIR=@sysconfdir@/ha.dHBSCRIPT=@INITDIR@/heartbeat@INIT_EXT@LIBDIR=@libdir@/HBLIB=$LIBDIR/heartbeatTESTFILE=OnlyForTestingUSAGE="Usage: 'TestHeartbeatComm break-communication|fix-communication|delete-testingfile'"if [ $# -lt 1 ]then echo "$USAGE"; exit 1;ficd @sysconfdir@/ha.d# Create OnlyForTesting File. It is invoked by ParseTestOpts() in heartbeat.cGenerateTestingFile(){ cat <<EOF >$TESTFILExmitloss=1rcvloss=1EOF}DeleteTestingFile(){ rm -f $TESTFILE echo "DeleteTestFileOK"}HBReload(){ $HBSCRIPT reload}OPT=$1case "$OPT" in break-communication) GenerateTestingFile HBReload ;; fix-communication) DeleteTestingFile HBReload ;; delete-testingfile) DeleteTestingFile ;; *) echo "$USAGE" ;;esacexit $?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -