Commit 78ee178f authored by Jonathon Duerig's avatar Jonathon Duerig

Add logging output to screen consoles

parent 44b2b2e1
...@@ -150,7 +150,7 @@ sub help() { ...@@ -150,7 +150,7 @@ sub help() {
# #
# Setup logfile # Setup logfile
# #
open LOGFILE, ">>", "$OAI_LOGDIR/startup.log"; open LOGFILE, ">", "$OAI_LOGDIR/startup.log";
logprint("----------------------\n"); logprint("----------------------\n");
logprint("Setting up OAI servers\n"); logprint("Setting up OAI servers\n");
logprint("----------------------\n"); logprint("----------------------\n");
......
#!/bin/bash #!/bin/bash
OAIRANDIR="/opt/oai/openairinterface5g" OAIRANDIR="/opt/oai/openairinterface5g"
OAIETCDIR="/local/repository/etc"
ENBEXE="lte-softmodem.Rel14" ENBEXE="lte-softmodem.Rel14"
ENBEXEPATH="$OAIRANDIR/targets/bin/$ENBEXE" ENBEXEPATH="$OAIRANDIR/targets/bin/$ENBEXE"
ENBCONFPATH="/usr/local/etc/oai/enb.conf" ENBCONFPATH="/usr/local/etc/oai/enb.conf"
...@@ -12,7 +13,7 @@ killall -q $ENBEXE ...@@ -12,7 +13,7 @@ killall -q $ENBEXE
sleep 1 sleep 1
# Startup function. # Startup function.
screen -S enb -d -m -h 10000 /bin/bash -c "$ENBEXEPATH -O $ENBCONFPATH" screen -c $OAIETCDIR/enb.screenrc -L -S enb -d -m -h 10000 /bin/bash -c "$ENBEXEPATH -O $ENBCONFPATH"
# Do some cleanup. # Do some cleanup.
screen -wipe >/dev/null 2>&1 screen -wipe >/dev/null 2>&1
......
#!/bin/bash #!/bin/bash
OAIETCDIR="/local/repository/etc"
cd /opt/oai/openair-cn/scripts cd /opt/oai/openair-cn/scripts
# Kill off running function. # Kill off running function.
...@@ -7,7 +9,7 @@ cd /opt/oai/openair-cn/scripts ...@@ -7,7 +9,7 @@ cd /opt/oai/openair-cn/scripts
sleep 1 sleep 1
# Startup function. # Startup function.
screen -S hss -d -m -h 10000 /bin/bash -c "./run_hss" screen -c $OAIETCDIR/hss.sceenrc -L -S hss -d -m -h 10000 /bin/bash -c "./run_hss"
# Do some cleanup. # Do some cleanup.
screen -wipe >/dev/null 2>&1 screen -wipe >/dev/null 2>&1
......
#!/bin/bash #!/bin/bash
OAIETCDIR="/local/repository/etc"
cd /opt/oai/openair-cn/scripts cd /opt/oai/openair-cn/scripts
# Kill off running function. # Kill off running function.
...@@ -7,7 +9,7 @@ cd /opt/oai/openair-cn/scripts ...@@ -7,7 +9,7 @@ cd /opt/oai/openair-cn/scripts
sleep 1 sleep 1
# Startup function. # Startup function.
screen -S mme -d -m -h 10000 /bin/bash -c "./run_mme" screen -c $OAIETCDIR/mme.screenrc -L -S mme -d -m -h 10000 /bin/bash -c "./run_mme"
# Do some cleanup. # Do some cleanup.
screen -wipe >/dev/null 2>&1 screen -wipe >/dev/null 2>&1
......
#!/bin/bash #!/bin/bash
OAIETCDIR="/local/repository/etc"
cd /opt/oai/openair-cn/scripts cd /opt/oai/openair-cn/scripts
# Kill off running function. # Kill off running function.
...@@ -7,7 +9,7 @@ cd /opt/oai/openair-cn/scripts ...@@ -7,7 +9,7 @@ cd /opt/oai/openair-cn/scripts
sleep 1 sleep 1
# Startup function. # Startup function.
screen -S spgw -d -m -h 10000 /bin/bash -c "./run_spgw" screen -c $OAIETCDIR/spgw.screenrc -L -S spgw -d -m -h 10000 /bin/bash -c "./run_spgw"
# Do some cleanup. # Do some cleanup.
screen -wipe >/dev/null 2>&1 screen -wipe >/dev/null 2>&1
......
log on
logfile /var/log/oai/enb.log
logfile flush 1
log on
logfile /var/log/oai/hss.log
logfile flush 1
log on
logfile /var/log/oai/mme.log
logfile flush 1
log on
logfile /var/log/oai/spgw.log
logfile flush 1
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