#!/bin/bash

serverName=pc
pidName=/data/work/edition.pid

#启动CLI
nohup /data/work/php/bin/php /data/web/game/edition/CLIServer/Service.php $serverName 2>&1 & echo $! >> $pidName
nohup /data/work/php/bin/php /data/web/game/edition/CLIServer/CLIServer.php $serverName 2>&1 & echo $! >> $pidName

#打印进程信息
ps -fe | grep CLI

echo "finish" 
