Change in osmocom-bb[master]: Add example systemd user unit files

Max gerrit-no-reply at lists.osmocom.org
Tue Mar 19 17:20:21 UTC 2019


Max has uploaded this change for review. ( https://gerrit.osmocom.org/13326


Change subject: Add example systemd user unit files
......................................................................

Add example systemd user unit files

Those examples illustrate how fake_trx and trxcon can utilized under
systemd --user instance directly from source checkout.

Those unit files are intended to only serve as a starting point - they
should be adjusted to match actual user's environment (paths, IP
addresses etc) before use.

Change-Id: Idc6b571cfb7796af1cfcf0af2d4e12e53f7a4ee6
---
A src/host/trxcon/contrib/systemd/osmo-trxcon.service
A src/target/trx_toolkit/contrib/systemd/osmo-fake_trx.service
2 files changed, 34 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/26/13326/1

diff --git a/src/host/trxcon/contrib/systemd/osmo-trxcon.service b/src/host/trxcon/contrib/systemd/osmo-trxcon.service
new file mode 100644
index 0000000..ac0de34
--- /dev/null
+++ b/src/host/trxcon/contrib/systemd/osmo-trxcon.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Osmocom virtual PHY (%j kind)
+PartOf=osmo.service
+After=osmo.service
+After=osmo-fake_trx.service
+
+[Service]
+Type=simple
+# -b --trx-bind     TRX bind IP address (default 0.0.0.0)
+# -i --trx-remote   TRX remote IP address (default 127.0.0.1)
+# -p --trx-port     Base port of TRX instance (default 6700)
+# -s --socket       Listening socket for layer23 (default /tmp/osmocom_l2)
+ExecStart=%h/source/gsm/osmocom-bb/src/host/%j/%j --socket %T/osmo_%j --trx-remote 127.0.0.13 --trx-bind 127.0.0.23
+Restart=always
+RestartSec=2
+
+[Install]
+WantedBy=osmo.service
diff --git a/src/target/trx_toolkit/contrib/systemd/osmo-fake_trx.service b/src/target/trx_toolkit/contrib/systemd/osmo-fake_trx.service
new file mode 100644
index 0000000..e59b958
--- /dev/null
+++ b/src/target/trx_toolkit/contrib/systemd/osmo-fake_trx.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Osmocom Fake BTS TRX
+PartOf=osmo.service
+After=osmo.service
+
+[Service]
+Type=simple
+# -b, --trx-bind-addr TRX_BIND_ADDR Set FakeTRX bind address (default 0.0.0.0)
+# -R, --bts-addr           BTS_ADDR Set BTS remote address (default 127.0.0.1)
+# -r, --bb-addr             BB_ADDR Set BB remote address  (default 127.0.0.1)
+ExecStart=%h/source/gsm/osmocom-bb/src/target/trx_toolkit/%j.py --trx-bind-addr 127.0.0.13 --bts-addr 127.0.0.3 --bb-addr 127.0.0.23
+Restart=always
+RestartSec=2
+
+[Install]
+WantedBy=osmo.service

-- 
To view, visit https://gerrit.osmocom.org/13326
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc6b571cfb7796af1cfcf0af2d4e12e53f7a4ee6
Gerrit-Change-Number: 13326
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190319/7a5e4f58/attachment.html>


More information about the gerrit-log mailing list