调用maat新接口

This commit is contained in:
jixinyi
2019-01-22 17:47:22 +08:00
parent 25a2c2af66
commit ecd3fcca84
6 changed files with 70 additions and 0 deletions

18
mctrl/bin/mctrl_r3 Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
while [ 1 ]; do
count=`ls -l core.* |wc -l`
echo $count
if [ $count -lt 5 ]
then
echo "set unlimited"
ulimit -c unlimited
else
ulimit -c 0
fi
./mctrl > /dev/null
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 10
done
~