2017-11-09 14:00:12 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Osmocom Media Gateway (MGW)
|
2023-05-26 12:10:46 +00:00
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
2017-11-09 14:00:12 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2023-11-30 17:20:51 +00:00
|
|
|
LimitNOFILE=65536
|
2022-08-30 12:45:32 +00:00
|
|
|
StateDirectory=osmocom
|
|
|
|
WorkingDirectory=%S/osmocom
|
2017-11-09 14:00:12 +00:00
|
|
|
Restart=always
|
2024-05-10 14:14:49 +00:00
|
|
|
User=osmocom
|
|
|
|
Group=osmocom
|
2017-11-09 14:00:12 +00:00
|
|
|
ExecStart=/usr/bin/osmo-mgw -s -c /etc/osmocom/osmo-mgw.cfg
|
|
|
|
RestartSec=2
|
2024-05-10 14:14:49 +00:00
|
|
|
AmbientCapabilities=CAP_SYS_NICE
|
2022-11-06 12:33:00 +00:00
|
|
|
# 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
|
2017-11-09 14:00:12 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|