diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2019-05-23 17:59:12 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2019-05-24 12:45:33 +0200 |
commit | e7f35eec80ce9f939d9f78717640d63c35f171fd (patch) | |
tree | 0f22af4c3d4c9b23c2fc5c57c8dda8846e51190d /contrib/systemd | |
parent | 482564b422096115aa9eaa2c6599fea9168b49e2 (diff) |
osmo-bts-oc2g: Fix status LED responsibilities
osmo-bts-oc2g no longer modifies the status LED and instead leaves that
to the bts manager. The service file now also creates a directory in
/var/run needed for osmo-bts to communicate with oc2gbts-mgr. This
status file is used by oc2gbts-mgr to figure out when the bts is
operational.
Related: SYS#4493
Change-Id: Ifae634c6c2ecec7d32298c0f266f91f3e81308f5
Diffstat (limited to 'contrib/systemd')
-rw-r--r-- | contrib/systemd/osmo-bts-oc2g.service | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/systemd/osmo-bts-oc2g.service b/contrib/systemd/osmo-bts-oc2g.service index 7b0168ad..860aeb1f 100644 --- a/contrib/systemd/osmo-bts-oc2g.service +++ b/contrib/systemd/osmo-bts-oc2g.service @@ -3,11 +3,8 @@ Description=osmo-bts for OC-2G [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-oc2g -s -c /etc/osmocom/osmo-bts-oc2g.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 |