2021-12-08 21:17:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# release previously opened sockets
|
|
|
|
kill -9 `pidof python3`
|
|
|
|
|
|
|
|
# Run agent, sleep, run connector
|
|
|
|
echo "[`date`] Run xApp" > /home/container.log
|
|
|
|
cd /home/sample-xapp && python3 run_xapp.py &
|
|
|
|
|
|
|
|
echo "[`date`] Pause 10 s" >> /home/container.log
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
echo "[`date`] Run connector" >> /home/container.log
|
2021-12-22 19:33:15 +01:00
|
|
|
cd /home/xapp-sm-connector && ./run_xapp.sh
|
2021-12-08 21:17:46 +01:00
|
|
|
|