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

18 lines
396 B

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