summaryrefslogblamecommitdiff
path: root/turnserver.service
blob: 20ff461ba19c2f6c172b8f5d9aa71395ff723543 (plain) (tree)

























                                                                                                                
[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