You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
riskshell/shell/killNode

13 lines
173 B

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