Commit 6d172e70 authored by Joanne Hugé's avatar Joanne Hugé

wip

parent 98260ed8
......@@ -60,7 +60,7 @@ md5sum = 52da9fe3a569199e35ad89ae1a44c30e
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum = fa995821a22f0da6a2217ceb9a0a1948
md5sum = c77a4fb994092a0f838614b2755bfc5f
[template-ors-enb]
_update_hash_filename_ = instance-ors-enb.jinja2.cfg
......
......@@ -163,7 +163,7 @@ inline =
if test $(du ${:enb-info-log} | cut -f1) -ge ${:max-enb-info-log-kb-size} ; then
stat ${:enb-start-date} || date +"%Y%m%d.%T" > ${:enb-start-date}
head -c -$((${:max-enb-info-log-kb-size}/2))k ${:enb-info-log} > ${:enb-info-log}.$(cat ${:enb-start-date})
tail -c $((${:-max-enb-info-log-kb-size}/2))k ${:enb-info-log} > ${:enb-info-log}.tmp
tail -c $((${:max-enb-info-log-kb-size}/2))k ${:enb-info-log} > ${:enb-info-log}.tmp
mv ${:enb-info-log}.tmp ${:enb-info-log}
fi
# Limit combined size for enb radio archive logs and enb info archive logs
......@@ -178,7 +178,7 @@ inline =
rm -f $(ls -1t $2* | tail -n$i)
}
trim ${:max-enb-radio-log-combined-kb-size} ${:enb-radio-log}.
trim ${:enb-info-log-combined-kb-size} ${:enb-info-log}.
trim ${:max-enb-info-log-combined-kb-size} ${:enb-info-log}.
# Remove almost empty enb radio archive log files
rm -f $(find $(dirname ${:enb-radio-log}) -name "$(basename ${:enb-radio-log}).*" -size -5k)
# Launch lteenb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment