Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/keepalived/scripts/chk.sh

17 lines
303 B

2 years ago
#!/bin/bash
2 years ago
# 计划任务,恢复后,可自动拉起keepalived
# {$SERVER_PATH}/keepalived/scripts/chk.sh mysql
2 years ago
# check script bash
curPath=`pwd`
rootPath=$(dirname "$curPath")
SOFT=$1
if [ "$SOFT" == "mysql" ];then
bash ${rootPath}/chk_mysql.sh
else
echo "you should use [chk.sh mysql] exp ."
fi