aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-11-24 10:38:34 +0100
committerHarald Welte <laforge@osmocom.org>2023-11-24 10:38:34 +0100
commit6ee9dccddb916e44b6bb3e2c967d8a37078206b4 (patch)
treedee00fc479c7ea375a2a9e56b219fb76938899a1
parentdevices: fix wrong gain to power mapping (diff)
downloadOsmoTRX-master.tar.xz
OsmoTRX-master.zip
osmo-trx-uhd: Make sure HOME environment variable is setHEADmaster
It turns out that uhd versions >= 4.0.0.0 *require* that either the HOME or the XDG_CONFIG_HOME variables are set, and otherwise will terminate the program. Change-Id: I1816013c507da28719590f063da0a397da656a10 Closes: OS#6269
-rw-r--r--contrib/systemd/osmo-trx-uhd.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/systemd/osmo-trx-uhd.service b/contrib/systemd/osmo-trx-uhd.service
index 34ba74a..6c5c2de 100644
--- a/contrib/systemd/osmo-trx-uhd.service
+++ b/contrib/systemd/osmo-trx-uhd.service
@@ -8,6 +8,7 @@ Type=simple
Restart=always
StateDirectory=osmocom
WorkingDirectory=%S/osmocom
+Environment=HOME=%h
ExecStart=/usr/bin/osmo-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg
RestartSec=2
# CPU scheduling policy: