#!/bin/bash

pidName=/data/work/editionNeiwangPVP.pid
matchLog=match_editionPhoneNei.log
roomLog=room_editionPhoneNei.log
informLog=inform_editionPhoneNei.log
time=$(date "+%Y%m%d-%H%M%S")
newMatchLog=match_editionPhoneNei-$time.log
newRoomLog=room_editionPhoneNei-$time.log
newInformLog=inform_editionPhoneNei-$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"