增加r2_tfe, r3_tfe与sysctl.conf文件的集成
This commit is contained in:
3
script/CMakeLists.txt
Normal file
3
script/CMakeLists.txt
Normal 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)
|
||||
@@ -1,2 +0,0 @@
|
||||
killall r3_tfe tfe
|
||||
./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
|
||||
Reference in New Issue
Block a user