summaryrefslogtreecommitdiff
path: root/script/user
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2019-06-21 16:17:29 +0800
committerluqiuwen <[email protected]>2019-06-21 16:17:29 +0800
commit1a725d24cefb0b08d3709c6df1137261bc80a504 (patch)
tree52f96587eee1fceed76e87cd014b13bfd1b15245 /script/user
parentf4097ed2e11ab50378dfaaabe879d7baa32b4ad2 (diff)
增加r2,r3和sysctl配置文件的集成。
Diffstat (limited to 'script/user')
-rw-r--r--script/user/r2_tfe2
-rw-r--r--script/user/r3_tfe20
2 files changed, 22 insertions, 0 deletions
diff --git a/script/user/r2_tfe b/script/user/r2_tfe
new file mode 100644
index 0000000..41a8b4a
--- /dev/null
+++ b/script/user/r2_tfe
@@ -0,0 +1,2 @@
+killall r3_tfe tfe
+./r3_tfe &> /dev/null &
diff --git a/script/user/r3_tfe b/script/user/r3_tfe
new file mode 100644
index 0000000..e330038
--- /dev/null
+++ b/script/user/r3_tfe
@@ -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