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:
parent
6ea8d7dac6
commit
a55bfdc436
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue