Blame view

run.sh 287 Bytes
314bc5df   zhengshouren   提交服务器初始代码
1
2
  #! /bin/sh
  
4d6f285d   zhouhaihai   增加发布功能
3
4
5
6
7
8
9
  
  config=$1
  if [[ $config == '' ]]; then
  	config="develop"
  fi
  
  
314bc5df   zhengshouren   提交服务器初始代码
10
11
12
13
14
15
16
17
  pid=`cat skynet.pid`
  run=`ps aux | grep skynet | grep -v grep | grep -c $pid`
  
  if [ $run = 1 ]; then
      echo "服务端正在运行"
      exit 0
  fi
  
4d6f285d   zhouhaihai   增加发布功能
18
  skynet/skynet config/${config}.lua
314bc5df   zhengshouren   提交服务器初始代码
19
  echo "服务端启动完毕"