#!/bin/bash

serverName=Center
pidName=/data/work/CenterCLI.pid


nohup /data/work/php/bin/php /data/web/game/center/ServerIndex.php $serverName CLIServer 2>&1 & echo $! >> $pidName
nohup /data/work/php/bin/php /data/web/game/center/ServerIndex.php $serverName Service 2>&1 & echo $! >> $pidName

ps -fe | grep Center

echo "finish" 