1 Star 4 Fork 2

githubsync / orange

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
start.sh 441 Bytes
一键复制 编辑 原始数据 按行查看 历史
yang.zhenzhen 提交于 2017-03-09 14:28 . 1. start.sh 做下判断
#!/usr/bin/env bash
current_path=`pwd`
pid=""
if [ -f $current_path/logs/nginx.pid ]
then
pid=`cat $current_path/logs/nginx.pid`
fi
if [ ! -f ./conf/nginx.conf ] || [ ! -f ./conf/orange.conf ]
then
make init-config
fi
if [ "$pid" = "" ]
then
echo "start orange.."
else
echo "kill "$pid
#kill -s QUIT $pid
nginx -p `pwd` -c ./conf/nginx.conf -s stop
echo "restart orange.."
fi
mkdir -p logs
nginx -p `pwd` -c ./conf/nginx.conf
Lua
1
https://gitee.com/githubsync/orange.git
git@gitee.com:githubsync/orange.git
githubsync
orange
orange
master

搜索帮助