blob: eaf84beafca60c411b8b1fd8296fa48eda497410 [file] [log] [blame]
Pau Espin Pedrol4efce882017-11-09 15:00:12 +01001[Unit]
2Description=Osmocom Media Gateway (MGW)
Oliver Smith72f91152023-05-26 14:10:46 +02003After=network-online.target
4Wants=network-online.target
Pau Espin Pedrol4efce882017-11-09 15:00:12 +01005
6[Service]
7Type=simple
Neels Hofmeyrcd132122023-11-30 18:20:51 +01008LimitNOFILE=65536
Max709aad22022-08-30 19:45:32 +07009StateDirectory=osmocom
10WorkingDirectory=%S/osmocom
Pau Espin Pedrol4efce882017-11-09 15:00:12 +010011Restart=always
Oliver Smithe0fc37a2024-05-10 16:14:49 +020012User=osmocom
13Group=osmocom
Pau Espin Pedrol4efce882017-11-09 15:00:12 +010014ExecStart=/usr/bin/osmo-mgw -s -c /etc/osmocom/osmo-mgw.cfg
15RestartSec=2
Oliver Smithe0fc37a2024-05-10 16:14:49 +020016AmbientCapabilities=CAP_SYS_NICE
Maxa55bfdc2022-11-06 15:33:00 +030017# CPU scheduling policy:
18CPUSchedulingPolicy=rr
19# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
20CPUSchedulingPriority=1
21# See sched(7) for further details on real-time policies and priorities
Pau Espin Pedrol4efce882017-11-09 15:00:12 +010022
23[Install]
24WantedBy=multi-user.target