GITLAB

wasteland / server

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • server
  • run.sh
  • 4d6f285d   增加发布功能 Browse Code »
    zhouhaihai
    2020-07-08 14:36:44 +0800  
run.sh 287 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#! /bin/sh


config=$1
if [[ $config == '' ]]; then
	config="develop"
fi


pid=`cat skynet.pid`
run=`ps aux | grep skynet | grep -v grep | grep -c $pid`

if [ $run = 1 ]; then
    echo "服务端正在运行"
    exit 0
fi

skynet/skynet config/${config}.lua
echo "服务端启动完毕"