aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/systemd
AgeCommit message (Collapse)AuthorFilesLines
9 dayscontrib/systemd: run as osmocom userOliver Smith2-0/+6
I have verified that with AmbientCapabilities=CAP_SYS_NICE, setting scheduling policy as described in the manual still works as expected. Related: OS#4107 Change-Id: I37be0dd4df012047a495235195912bd06ad2423d
2023-10-09Increase RR scheduler priority to 20, to avoid dropped burstsAndreas Eversberg1-1/+1
If frames are not deliverd fast enough to the DSP, bursts will get dropped. The osmo-bts-sysmo process must have priority over other processes, so it can deliver frames fast enough. Related: OS#6199 Change-Id: I2394e6bbc00a1d47987dbe7b70f4b5cbedf69b10
2023-09-27systemd: remove RestartPreventExitStatus=1Oliver Smith3-3/+0
Fix OsmoBTS not restarting if e.g. an external gsmtap IP is configured that is currently not available. Also make the service files more consistent with other Osmocom projects. Partial revert of ae2473c2 ("systemd: Do not restart with a broken config file or such"). Related: SYS#6581 Change-Id: Ieeed858c159839ebaa27b2be35a597fb86874c4b
2023-05-26systemd: depend on networking-online.targetOliver Smith8-0/+16
Related: SYS#6400 Change-Id: I9c0cc0779f9ddb7520a565668b7cde07c6ad55d8
2022-11-06Update realtime scheduling priority in service fileMax5-5/+5
Related: OS#5687 Change-Id: I64a8c1e9c5b4ca7b51956d195964124d3a8ef768
2022-09-16Document realtime options in .service unitsMax5-5/+15
It's not immediately obvious what numeric values mean for CPU scheduling policy. Let's document this and add doc reference. Related: OS#4107 Change-Id: Ib047762a336851e6205d77c83068a99d8a868e8b
2022-09-09Set working directory in systemd service fileMax8-0/+16
By default systemd will execute service with root directory (or home directory for user instance) which might result in attempts to create files in unexpected place. Let's set it to 'osmocom' subdir of state directory (/var/lib for system instance) instead. Related: OS#4821 Change-Id: I4b7bcd441e5da81c4c5267715675041171a1ce1e
2019-05-29osmo-bts-lc15: Change LED behaviour to be the same as oc2gDaniel Willmann1-4/+1
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
2019-05-29osmo-bts-oc2g: Fix status LED responsibilitiesDaniel Willmann1-4/+1
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
2019-01-30systemd: Install OC2G service files with autotoolsDaniel Willmann1-0/+4
Change-Id: Ifd37b6a01ad9007a9e887fe3dd208dc74047b4d8
2019-01-17Rename oc2g config file to match new naming schemeDaniel Willmann1-1/+1
examples/oc2g/osmo-bts.cfg->examples/oc2g/osmo-bts-oc2g.cfg Change-Id: Ie49d5695ea78da2995252c56c75ce42e6cec0e9c Related: SYS#4444
2018-12-06contrib: fix makedistcheck with disabled systemdOliver Smith1-1/+11
EXTRA_DIST files need to be distributed, no matter if the systemd option is configured or not. Change-Id: I5d3712b54a8b777c33a9804a4f612e4f37f829df
2018-10-27Add OC-2G BTS sourcesOmar Ramadan2-0/+50
Change-Id: I327384fe5ac944dc3996a3f00932d6f1a10d5a35
2018-09-12Install sample cfg file to /etc/osmocomPau Espin Pedrol3-3/+3
Change cfg file names so they don't overlap when installing different osmo-bts versions, and make systemd services look for correct new name. Remove unneeded duplicated EXTRA_DIST files from root dir Makefile.am Change-Id: I75fdd06cc52ce50628efb1f9b007d2e3926db27d
2018-09-12Install systemd services with autotoolsPau Espin Pedrol5-0/+101
Change-Id: I87299134696bbfc6721b1226d4de6c73854aa846
2018-09-06Move systemd service to contrib/systemdPau Espin Pedrol2-0/+30
Move it there and have only a symlink in debian/, like we do in all other projects. Change-Id: I213d3816a66e88069c31f85b3fbf462d1222aa43