checkPort update

This commit is contained in:
zhangkun9038@dingtalk.com 2024-02-23 00:28:27 +08:00
parent 5d00332616
commit d4badff4bf

View File

@ -33,9 +33,7 @@ if [ "$res" -eq 1 ]; then
echo "service on $1 $2 worked normally"
else
echo "service port:"$2 " is not actived, try to restart it"
#mysql -uroot -pAbcd@1234 -h0.0.0.0 -e "SET GLOBAL lower_case_table_names = 1;"
# systemctl restart shadowsocks-libev-server@libev
eval $3
eval $3 #执行重启服务动作
fi
exit