#902619 coturn: Systemd configuration

Package:
coturn
Source:
coturn
Description:
TURN and STUN server for VoIP
Submitter:
Jörg Sommer
Date:
2020-11-13 17:33:04 UTC
Severity:
normal
#902619#5
Date:
2018-06-28 16:14:57 UTC
From:
To:
Hi,

I've created a configuration for Systemd to replace the autogenerated
one. Maybe you would like to include this in the package. Systemd doesn't
need the `TURNSERVER_ENABLED`, because it supports enabling/disabling
services itself.

I've used the file at
https://github.com/coturn/coturn/blob/master/rpm/turnserver.service.fc as
template.

[Unit]
Description=coturn
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
After=network.target

[Service]
User=turnserver
Group=turnserver
# if you use SSL
#SupplementaryGroups=ssl-cert
Type=simple
PIDFile=/run/turnserver.pid
ExecStart=/usr/bin/turnserver -c /etc/turnserver.conf --pidfile /dev/null --log-file stdout
Restart=on-abort

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

[Install]
WantedBy=multi-user.target

Regards Jörg