#!/bin/bash

serverName=Zone_2
pidName=/data/work/S2CLI.pid


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

ps -fe | grep S2

echo "finish" 