增加r2_tfe, r3_tfe与sysctl.conf文件的集成

This commit is contained in:
luqiuwen
2019-06-18 10:45:29 +08:00
parent ce49632f36
commit 78fe7289fb
4 changed files with 4 additions and 19 deletions

3
script/CMakeLists.txt Normal file
View File

@@ -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)

View File

@@ -1,2 +0,0 @@
killall r3_tfe tfe
./r3_tfe &> /dev/null &

View File

@@ -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