aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-19 13:17:57 +0200
committerEric <ewild@sysmocom.de>2020-08-26 17:35:18 +0200
commit473ea0afd73e4ed61f942a1805e168636f3521b1 (patch)
treef014f23e7fdcf822a905bb00e8a934c3d5e590a8
parentd1cc8b928e0bbef1862b012475b9f80a31a04eb3 (diff)
contrib/systemd/osmo-trx-ipc.service: new file
-rw-r--r--contrib/systemd/Makefile.am7
-rw-r--r--contrib/systemd/osmo-trx-ipc.service11
2 files changed, 17 insertions, 1 deletions
diff --git a/contrib/systemd/Makefile.am b/contrib/systemd/Makefile.am
index 800b1e1..6566b97 100644
--- a/contrib/systemd/Makefile.am
+++ b/contrib/systemd/Makefile.am
@@ -1,7 +1,8 @@
EXTRA_DIST = \
osmo-trx-lms.service \
osmo-trx-uhd.service \
- osmo-trx-usrp1.service
+ osmo-trx-usrp1.service \
+ osmo-trx-ipc.service
if HAVE_SYSTEMD
SYSTEMD_SERVICES =
@@ -18,5 +19,9 @@ if DEVICE_LMS
SYSTEMD_SERVICES += osmo-trx-lms.service
endif
+if DEVICE_IPC
+SYSTEMD_SERVICES += osmo-trx-ipc.service
+endif
+
systemdsystemunit_DATA = $(SYSTEMD_SERVICES)
endif # HAVE_SYSTEMD
diff --git a/contrib/systemd/osmo-trx-ipc.service b/contrib/systemd/osmo-trx-ipc.service
new file mode 100644
index 0000000..c886ed7
--- /dev/null
+++ b/contrib/systemd/osmo-trx-ipc.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Osmocom SDR BTS L1 Transceiver (IPC Backend)
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/usr/bin/osmo-trx-ipc -C /etc/osmocom/osmo-trx-ipc.cfg
+RestartSec=2
+
+[Install]
+WantedBy=multi-user.target