mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 21:13:44 +00:00
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: Ibb83c231231b39dc6732c0f375aeb3b21f3938ef
25 lines
627 B
Desktop File
25 lines
627 B
Desktop File
[Unit]
|
|
Description=Osmocom Media Gateway (MGW)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
LimitNOFILE=65536
|
|
StateDirectory=osmocom
|
|
WorkingDirectory=%S/osmocom
|
|
Restart=always
|
|
User=osmocom
|
|
Group=osmocom
|
|
ExecStart=/usr/bin/osmo-mgw -s -c /etc/osmocom/osmo-mgw.cfg
|
|
RestartSec=2
|
|
AmbientCapabilities=CAP_SYS_NICE
|
|
# 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
|