#!/bin/bash

pidName=/data/work/editionwaiPVP.pid
matchLog=match_editionPhonewai.log
roomLog=room_editionPhonewai.log
informLog=inform_editionPhonewai.log
time=$(date "+%Y%m%d-%H%M%S")
newMatchLog=match_editionPhonewai-$time.log
newRoomLog=room_editionPhonewai-$time.log
newInformLog=inform_editionPhonewai-$time.log


for line in `cat $pidName`
do 
	kill -9 $line
done

cat /dev/null > $pidName

#重命名日志文件
mv /data/log/$matchLog /data/log/$newMatchLog
mv /data/log/$roomLog /data/log/$newRoomLog
mv /data/log/$informLog /data/log/$newInformLog

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

echo "finish"