summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2019-06-18 10:45:29 +0800
committerluqiuwen <[email protected]>2019-06-18 10:45:29 +0800
commit78fe7289fbf8d4567d3bf2d85c6c2a11ea350cdc (patch)
treed7464fbb3d57ca94f26b45a9f64b23944a9afd7b /script
parentce49632f3678858fbbdce679907946a944214af8 (diff)
增加r2_tfe, r3_tfe与sysctl.conf文件的集成
Diffstat (limited to 'script')
-rw-r--r--script/CMakeLists.txt3
-rw-r--r--script/r2_tfe2
-rw-r--r--script/r3_tfe17
3 files changed, 3 insertions, 19 deletions
diff --git a/script/CMakeLists.txt b/script/CMakeLists.txt
new file mode 100644
index 0000000..47b4745
--- /dev/null
+++ b/script/CMakeLists.txt
@@ -0,0 +1,3 @@
+install(PROGRAMS user/r2_tfe DESTINATION ./ COMPONENT Program)
+install(PROGRAMS user/r3_tfe DESTINATION ./ COMPONENT Program)
+install(FILES system/80-tfe.conf DESTINATION /etc/sysctl.d/ COMPONENT Program)
diff --git a/script/r2_tfe b/script/r2_tfe
deleted file mode 100644
index 41a8b4a..0000000
--- a/script/r2_tfe
+++ /dev/null
@@ -1,2 +0,0 @@
-killall r3_tfe tfe
-./r3_tfe &> /dev/null &
diff --git a/script/r3_tfe b/script/r3_tfe
deleted file mode 100644
index 18cda30..0000000
--- a/script/r3_tfe
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/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
-
- ./tfe > log/screen.log 2>&1
- echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
- sleep 10
-done