#!/bin/bash

serverName=Zone_w1
pidName=/data/work/W1CLI.pid


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

ps -fe | grep Server

echo "finish" 