diff --git a/CMakeLists.txt b/CMakeLists.txt index 5250989..4279541 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,3 +64,4 @@ add_subdirectory(common) add_subdirectory(plugin) add_subdirectory(platform) add_subdirectory(cache) +add_subdirectory(script) 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