osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-trx/+/37295?usp=email ) Change subject: contrib/systemd/osmo-trx-uhd: fix HOME= ...................................................................... contrib/systemd/osmo-trx-uhd: fix HOME= With recent changes, osmo-trx-uhd does not run as root anymore. Change HOME=%h, which evaluates to HOME=/root, to HOME=%S/osmocom which evaluates to HOME=/var/lib/osmocom. This is the StateDirectory that is owned by the osmocom user. Fix for: osmo-trx-uhd[4013]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error' osmo-trx-uhd[4013]: what(): boost::filesystem::status: Permission denied: "/root/.config/uhd.conf" osmo-trx-uhd[4013]: signal 6 received Fixes: OS#6495 Change-Id: Ic6f020dd800eedc5e56c7d71e65521ec831d8c64 --- M contrib/systemd/osmo-trx-uhd.service 1 file changed, 21 insertions(+), 1 deletion(-) Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve Hoernchen: Looks good to me, approved diff --git a/contrib/systemd/osmo-trx-uhd.service b/contrib/systemd/osmo-trx-uhd.service index 64eb510..50440a7 100644 --- a/contrib/systemd/osmo-trx-uhd.service +++ b/contrib/systemd/osmo-trx-uhd.service @@ -8,7 +8,7 @@ Restart=always StateDirectory=osmocom WorkingDirectory=%S/osmocom -Environment=HOME=%h +Environment=HOME=%S/osmocom User=osmocom Group=osmocom ExecStart=/usr/bin/osmo-trx-uhd -C /etc/osmocom/osmo-trx-uhd.cfg -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/37295?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: Ic6f020dd800eedc5e56c7d71e65521ec831d8c64 Gerrit-Change-Number: 37295 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: osmith <osmith@sysmocom.de> Gerrit-MessageType: merged