创建分支

This commit is contained in:
liuxueli
2018-06-21 17:38:32 +08:00
commit 36aa5c4180
17 changed files with 3405 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
while [ 1 ]; do
for((i=6380;i<=6389;i++))
do
port_alive=`netstat -antlp | grep $i | wc -l`
if [[ $port_alive -lt 1 ]]; then
cd ./$i/; taskset -c 3-20 redis-server redis$i.conf; cd -
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
fi
done
sleep 10
done