Restructure O1 module to run as a thread in O-DU High binary [Issue-Id: ODUHIGH-297]
[o-du/l2.git] / build / scripts / netopeer-server.sh
diff --git a/build/scripts/netopeer-server.sh b/build/scripts/netopeer-server.sh
new file mode 100755 (executable)
index 0000000..f4b1f80
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+if [ "$1" == "" ]
+then
+   echo Usage : netopeer.sh [start] [stop]
+fi
+
+if [ "$1" == "start" ]
+then
+   netopeer2-server -d -v2 > /var/log/netopeer2-server.log 2>&1 &
+fi
+
+if [ "$1" == "stop" ]
+then
+   kill -9 `pidof netopeer2-server`
+fi