1 Star 0 Fork 7

aven/spiderkit

forked from 立冬/spiderkit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app-start.sh 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangsiong 提交于 2015-05-29 14:52 . script name and path fixed.
CURRENT_PATH=`pwd`
PROCESSES=`jps`
EXISTPROCESS=0
HASKEY=0
for p in $PROCESSES; do
if [ $p = "spider-schedule-0.0.1.jar" ] ; then
EXISTPROCESS=1
fi
if [ $EXISTPROCESS = 1 ] ; then
HASKEY=1
break
fi
done
if [ $HASKEY = 1 ] ; then
echo "Control script \"spider-schedule\" has already running, exit!"
exit 0
fi
rm logs/* -rf
export QWS_CACHE_HOME=/app/.qws/cache/
export XDG_CACHE_HOME=/app/.cache/
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:`pwd`/script/target/lib:$LD_LIBRARY_PATH
cd src/java/src/spider-schedule/
nohup java -jar target/spider-schedule-0.0.1.jar > app.log 2>&1 &
echo $! > $CURRENT_PATH/app.pid
cd -
#cd src/java/src/spider-data-extract/
#nohup java -jar target/spider-data-extract-0.0.1-SNAPSHOT.jar > app.log 2>&1 &
#echo $! > $CURRENT_PATH/extract.pid
#cd -
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xubingyue/spiderkit.git
git@gitee.com:xubingyue/spiderkit.git
xubingyue
spiderkit
spiderkit
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385