#!/bin/sh
#杀死进程
if [ -e run.pid ]
then
p=`cat run.pid`
kill -9 $p
if [ $? -eq 0 ]
echo "成功杀死进程:$p"
rm -f run.pid
fi
./run.sh