aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/systemd/osmo-bts-lc15.service
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-05-24 12:31:15 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-05-24 12:45:33 +0200
commitf903ab23cbce69977005c132262b679b55e98ff5 (patch)
tree61e90fbdfb0dee655f96097c5352b56067404d2f /contrib/systemd/osmo-bts-lc15.service
parente7f35eec80ce9f939d9f78717640d63c35f171fd (diff)
osmo-bts-lc15: Change LED behaviour to be the same as oc2gdaniel/oc2g-led
It looks like the status LED on the sysmobts2100 never worked correctly since lc15bts-mgr expects osmo-bts-lc15 to create and manage /var/run/osmo-bts/state, but there is nothing to do so in osmo-bts. This patch copies the functions from oc2g to manage the state file in lc15. Change-Id: Iad32a22fc72e2aba45e4f1b9ae585f6e0b8757ed Related: SYS#4493
Diffstat (limited to 'contrib/systemd/osmo-bts-lc15.service')
-rw-r--r--contrib/systemd/osmo-bts-lc15.service5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/systemd/osmo-bts-lc15.service b/contrib/systemd/osmo-bts-lc15.service
index 90e7fc29..7c511100 100644
--- a/contrib/systemd/osmo-bts-lc15.service
+++ b/contrib/systemd/osmo-bts-lc15.service
@@ -3,11 +3,8 @@ Description=osmo-bts for LC15 / sysmoBTS 2100
[Service]
Type=simple
-ExecStartPre=/bin/sh -c 'echo 1 > /sys/class/leds/usr0/brightness'
-ExecStartPre=/bin/sh -c 'echo 1 > /sys/class/leds/usr1/brightness'
ExecStart=/usr/bin/osmo-bts-lc15 -t 2 -s -c /etc/osmocom/osmo-bts-lc15.cfg -M
-ExecStopPost=/bin/sh -c 'echo 1 > /sys/class/leds/usr0/brightness'
-ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/usr1/brightness'
+RuntimeDirectory=osmo-bts
Restart=always
RestartSec=2
RestartPreventExitStatus=1