Commit 823fa7b2 authored by Joanne Hugé's avatar Joanne Hugé

ors-amarisoft: eNB / gNB logs cleanup

parent b33ce87f
......@@ -24,7 +24,7 @@ md5sum = 1358f8e0a4cecefe4cdf389b69067f34
[template-lte-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum = 71ca45e186afbc3be8e6d6f541142bf7
md5sum = 80ee6b6aae270e5a44e84ba8edc6b3c6
[template-lte-gnb-epc]
_update_hash_filename_ = instance-gnb-epc.jinja2.cfg
......@@ -32,11 +32,11 @@ md5sum = b15e678779dee0a26746487990fedc01
[template-lte-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum = b1bb29784c9f71ab0dd41e5cd9970784
md5sum = f636b5a0fe543c4d3b3eaf3fcc7fd854
[template-lte-epc]
_update_hash_filename_ = instance-epc.jinja2.cfg
md5sum = 7266e97e2aad20c4c224e1663139535b
md5sum = 0c69dee1e1afcdcca250fa78e76a0615
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
......@@ -44,7 +44,7 @@ md5sum = d33163012d6c98efc59161974c649557
[enb.jinja2.cfg]
filename = config/enb.jinja2.cfg
md5sum = 8cac0de54f54236e750ee85b98de8a31
md5sum = 890642570bb905033d88c8ef7426850b
[gnb.jinja2.cfg]
filename = config/gnb.jinja2.cfg
......
......@@ -23,7 +23,7 @@
- 'max_size': set the maximum size of the hex dump. 0 means no
hex dump. -1 means no limit.
*/
log_options: "all.level=debug,all.max_size=32",
log_options: "all.level=info,all.max_size=32,file.rotate=1G,file.path={{ directory['tmp'] }}",
log_filename: "{{ directory['log'] }}/enb.log",
/* Enable remote API and Web interface */
......
......@@ -5,6 +5,7 @@ parts =
lte-enb-config
lte-enb-service
sdr-busy-promise
remove-tmp
monitor-base
publish-connection-information
......@@ -14,6 +15,11 @@ eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[remove-tmp]
# Remove old logs stored in tmp directory to prevent disk from becoming full
recipe = plone.recipe.command
command = rm -rf ${directory:tmp}/*
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
computer = {{ slap_connection['computer-id'] }}
......@@ -45,6 +51,7 @@ etc = ${:home}/etc
var = ${:home}/var
etc = ${:home}/etc
bin = ${:home}/bin
tmp = ${:home}/tmp
run = ${:var}/run
script = ${:etc}/run
service = ${:etc}/service
......@@ -73,7 +80,7 @@ output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
sudo /opt/amarisoft/rm-tmp-lte | true;
{{ enb }}/lteenb ${directory:etc}/enb.cfg >> ${directory:log}/enb-output.cfg 2>> ${directory:log}/enb-output.cfg
{{ enb }}/lteenb ${directory:etc}/enb.cfg >> ${directory:log}/enb-output.log 2>> ${directory:log}/enb-output.log
### eNodeB (enb)
[lte-enb-service]
......
......@@ -84,7 +84,7 @@ output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
rm -f ${directory:var}/lte_ue.db;
{{ mme }}/ltemme ${directory:etc}/mme.cfg >> ${directory:log}/mme-output.cfg 2>> ${directory:log}/mme-output.cfg
{{ mme }}/ltemme ${directory:etc}/mme.cfg >> ${directory:log}/mme-output.log 2>> ${directory:log}/mme-output.log
### MME
[lte-mme-service]
......
......@@ -80,7 +80,7 @@ output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
sudo /opt/amarisoft/rm-tmp-lte | true;
{{ enb }}/lteenb ${directory:etc}/gnb.cfg >> ${directory:log}/gnb-output.cfg 2>> ${directory:log}/gnb-output.cfg
{{ enb }}/lteenb ${directory:etc}/gnb.cfg >> ${directory:log}/gnb-output.log 2>> ${directory:log}/gnb-output.log
### eNodeB (enb)
[lte-enb-service]
......
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