parent
d25abefc3c
commit
8fe93add81
@ -1,13 +1,13 @@ |
||||
#!/bin/sh |
||||
#杀死进程 |
||||
if [ -e $1.pid ] |
||||
if [ -e run.pid ] |
||||
then |
||||
p=`cat $1.pid` |
||||
p=`cat run.pid` |
||||
kill -9 $p |
||||
if [ $? -eq 0 ] |
||||
then |
||||
echo "成功杀死进程:$p" |
||||
rm -f pid |
||||
rm -f run.pid |
||||
fi |
||||
fi |
||||
./run.sh |
||||
|
Loading…
Reference in new issue