创建分支

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,12 @@
#!/bin/sh
while [ 1 ]; do
alive=`netstat -altp | grep 6379 | wc -l`
if [[ $alive -eq 0 ]];
then
systemctl start redis-master.service
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 10
fi
sleep 10
done