From 0f00e676f2d923c39b93ca1e5ee69b48cc24d808 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 19 May 2020 13:17:57 +0200 Subject: [PATCH] contrib/systemd/osmo-trx-ipc.service: new file Change-Id: Ic2ba7616c6909bd0a7e642554ecffa4939935b01 --- contrib/systemd/Makefile.am | 7 ++++++- contrib/systemd/osmo-trx-ipc.service | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 contrib/systemd/osmo-trx-ipc.service diff --git a/contrib/systemd/Makefile.am b/contrib/systemd/Makefile.am index 800b1e1c..6566b978 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 00000000..c886ed76 --- /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