mirror of https://github.com/midoks/mdserver-web
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.
18 lines
396 B
18 lines
396 B
#!/bin/bash
|
|
|
|
# 计划任务,恢复后,可自动拉起keepalived
|
|
# bash {$SERVER_PATH}/keepalived/scripts/chk.sh mysql
|
|
|
|
cd {$SERVER_PATH}/keepalived
|
|
|
|
# check script bash
|
|
curPath=`pwd`
|
|
rootPath=$(dirname "$curPath")
|
|
|
|
SOFT=$1
|
|
|
|
if [ "$SOFT" == "mysql" ];then
|
|
bash ${rootPath}/keepalived/scripts/chk_mysql.sh > ${rootPath}/keepalived/keepalived.log
|
|
else
|
|
echo "you should use [chk.sh mysql] exp ."
|
|
fi |