| 1 |
[Unit] |
| 2 |
Description=osmo-bts for sysmocom sysmoBTS |
| 3 |
After=network-online.target |
| 4 |
Wants=network-online.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
Type=simple |
| 8 |
ExecStartPre=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' |
| 9 |
ExecStart=/usr/bin/osmo-bts-sysmo -s -c /etc/osmocom/osmo-bts-sysmo.cfg -M |
| 10 |
ExecStopPost=/bin/sh -c 'echo 0 > /sys/class/leds/activity_led/brightness' |
| 11 |
ExecStopPost=/bin/sh -c 'cat /lib/firmware/sysmobts-v?.bit > /dev/fpgadl_par0 ; sleep 3s; cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0; sleep 1s' |
| 12 |
StateDirectory=osmocom |
| 13 |
WorkingDirectory=%S/osmocom |
| 14 |
Restart=always |
| 15 |
RestartSec=2 |
| 16 |
|
| 17 |
# CPU scheduling policy: |
| 18 |
CPUSchedulingPolicy=rr |
| 19 |
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority): |
| 20 |
CPUSchedulingPriority=20 |
| 21 |
# See sched(7) for further details on real-time policies and priorities |
| 22 |
|
| 23 |
[Install] |
| 24 |
WantedBy=multi-user.target |
| 25 |
Alias=sysmobts.service |
| 26 |
Alias=osmo-bts.service |