#!/bin/bash

pidName=/data/work/S2PVP.pid
pvpConfig=config_2.ini
informConfig=Zone_2.ini
matchLog=match2.log
roomLog=room2.log
informLog=inform2.log

#����pvp
nohup /data/game/PVP2/match -c /data/game/PVP2/Config/$pvpConfig > /data/log/$matchLog 2>&1 & echo $! >> $pidName
nohup /data/game/PVP2/room -c /data/game/PVP2/Config/$pvpConfig > /data/log/$roomLog  2>&1 & echo $! >> $pidName
nohup unbuffer /data/game/PVP2/inform -c /data/game/PVP2/Config/$informConfig > /data/log/$informLog 2>&1 & echo $! >> $pidName

#��ӡ������Ϣ
ps -fe | grep pvp

echo "finish"