summaryrefslogtreecommitdiff
path: root/turnserver.service
blob: 20ff461ba19c2f6c172b8f5d9aa71395ff723543 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=turnserver
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
After=syslog.target network.target

[Service]
User=turnserver
Group=turnserver
Type=forking
EnvironmentFile=/etc/sysconfig/turnserver
PIDFile=/run/turnserver/turnserver.pid
ExecStart=/usr/bin/turnserver -o --pidfile /run/turnserver/turnserver.pid -c /etc/turnserver.conf $EXTRA_OPTIONS
ExecStopPost=/usr/bin/rm -f /run/turnserver/turnserver.pid
Restart=on-abort
StandardOutput=journal

LimitCORE=infinity
LimitNOFILE=999999
LimitNPROC=60000
LimitRTPRIO=infinity
LimitRTTIME=7000000
CPUSchedulingPolicy=other
UMask=0007

[Install]
WantedBy=multi-user.target