Add realtime scheduling and set priority in service file

This sets lowest realtime priority which still takes precedence over any non-realtime service.

Related: OS#5687
Change-Id: Ib1705a164b04b876f129a17c4e8353b9ddcc538e
This commit is contained in:
Max 2022-11-06 15:33:00 +03:00 committed by msuraev
parent 6ea8d7dac6
commit a55bfdc436
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ WorkingDirectory=%S/osmocom
Restart=always
ExecStart=/usr/bin/osmo-mgw -s -c /etc/osmocom/osmo-mgw.cfg
RestartSec=2
# CPU scheduling policy:
CPUSchedulingPolicy=rr
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
CPUSchedulingPriority=1
# See sched(7) for further details on real-time policies and priorities
[Install]
WantedBy=multi-user.target