增加openresty

master
pan 4 years ago
parent 8fe93add81
commit 4d05771a4f
  1. 10
      shell/killNode

@ -1,13 +1,21 @@
#!/bin/sh #!/bin/sh
#杀死进程 #杀死进程
result=1
if [ -e run.pid ] if [ -e run.pid ]
then then
p=`cat run.pid` p=`cat run.pid`
kill -9 $p kill $p
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
echo "成功杀死进程:$p" echo "成功杀死进程:$p"
rm -f run.pid rm -f run.pid
else
echo "无法杀死进程:$p"
result=0
fi fi
fi fi
if [ $result -eq 1 ]
then
./run.sh ./run.sh
fi

Loading…
Cancel
Save