1 Star 0 Fork 0

LinkTwist/dontstarveserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start.sh 878 Bytes
一键复制 编辑 原始数据 按行查看 历史
LinkTwist 提交于 2023-09-15 18:58 . Update
#!/bin/bash
#author cuukenn
bin="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source ${bin}/config/config.properties
dst_log_path=$bin/$DST_LOG_PATH
mkdir -p $dst_log_path
sh scripts/dst-start.sh Master ${DST_CLUSTER_NAME} >>$dst_log_path/Master_${DST_CLUSTER_NAME}.log 2>&1
if [ $? -ne 0 ]; then
echo "Dstserver(Master,$DST_CLUSTER_NAME) is running, no more instance to start"
exit 1
fi
echo "Dstserver(Master,$DST_CLUSTER_NAME) is starting, service will be ready in several time..."
if [ $DST_CAVES_ENABLE -eq 1 ]; then
sh scripts/dst-start.sh Caves ${DST_CLUSTER_NAME} >>$dst_log_path/Caves_${DST_CLUSTER_NAME}.log 2>&1
if [ $? -ne 0 ]; then
echo "Dstserver(Caves,$DST_CLUSTER_NAME) is running, no more instance to start"
exit 1
fi
echo "Dstserver(Caves,$DST_CLUSTER_NAME) is starting, service will be ready in several time..."
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/cuukenn/dontstarveserver.git
[email protected]:cuukenn/dontstarveserver.git
cuukenn
dontstarveserver
dontstarveserver
master

搜索帮助