增加r2,r3和sysctl配置文件的集成。
This commit is contained in:
2
script/user/r2_tfe
Normal file
2
script/user/r2_tfe
Normal file
@@ -0,0 +1,2 @@
|
||||
killall r3_tfe tfe
|
||||
./r3_tfe &> /dev/null &
|
||||
20
script/user/r3_tfe
Normal file
20
script/user/r3_tfe
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
|
||||
export ASAN_OPTIONS=abort_on_error=1:log_path=./asan.log
|
||||
|
||||
ulimit -n 655350
|
||||
./bin/tfe > /dev/null
|
||||
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
|
||||
sleep 1
|
||||
done
|
||||
Reference in New Issue
Block a user