aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/osmo-bts-lc15.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/osmo-bts-lc15.service')
-rw-r--r--contrib/osmo-bts-lc15.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/osmo-bts-lc15.service b/contrib/osmo-bts-lc15.service
new file mode 100644
index 00000000..a30d50fd
--- /dev/null
+++ b/contrib/osmo-bts-lc15.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=osmo-bts for LC15 / sysmoBTS 2100
+
+[Service]
+Type=simple
+ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/usr0/brightness'
+ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/usr1/brightness'
+ExecStart=/usr/bin/osmo-bts-lc15 -t 2 -s -c /etc/osmocom/osmo-bts.cfg -M
+ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/usr0/brightness'
+ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/usr1/brightness'
+Restart=always
+RestartSec=2
+RestartPreventExitStatus=1
+
+# The msg queues must be read fast enough
+CPUSchedulingPolicy=rr
+CPUSchedulingPriority=1
+
+[Install]
+WantedBy=multi-user.target