Here is an example file that seems to work fine:
``` [Unit] Description=coturn Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1) After=syslog.target network.target
[Service] Type=forking User=turnserver Group=turnserver RuntimeDirectory=turnserver RuntimeDirectoryMode=0750 EnvironmentFile=/etc/default/coturn PIDFile=/run/turnserver/turnserver.pid ExecStart=/usr/bin/turnserver --daemon --pidfile /run/turnserver/turnserver.pid --syslog -c /etc/turnserver.conf $EXTRA_OPTIONS Restart=on-abort LimitCORE=infinity LimitNOFILE=1000000 LimitNPROC=60000 LimitRTPRIO=infinity LimitRTTIME=7000000 CPUSchedulingPolicy=other UMask=0007
[Install] WantedBy=multi-user.target ```
To enable verbose logging, /etc/default/coturn should contain `EXTRA_OPTIONS=-v`.
To bind to port 443, the /usr/bin/turnserver binary needs the CAP_NET_BIND_SERVICE capability (`setcap /usr/bin/turnserver cap_net_bind_service=+ep`).
Here is an example file that seems to work fine:
``` man:coturn( 1) man:turnadmin(1) man:turnserver(1)
[Unit]
Description=coturn
Documentation=
After=syslog.target network.target
[Service] y=turnserver yMode=0750 =/etc/default/ coturn /run/turnserver /turnserver. pid /usr/bin/ turnserver --daemon --pidfile /run/turnserver /turnserver. pid --syslog -c /etc/turnserver .conf $EXTRA_OPTIONS infinity licy=other
Type=forking
User=turnserver
Group=turnserver
RuntimeDirector
RuntimeDirector
EnvironmentFile
PIDFile=
ExecStart=
Restart=on-abort
LimitCORE=infinity
LimitNOFILE=1000000
LimitNPROC=60000
LimitRTPRIO=
LimitRTTIME=7000000
CPUSchedulingPo
UMask=0007
[Install] multi-user. target
WantedBy=
```
To enable verbose logging, /etc/default/coturn should contain `EXTRA_OPTIONS=-v`.
To bind to port 443, the /usr/bin/turnserver binary needs the CAP_NET_ BIND_SERVICE capability (`setcap /usr/bin/turnserver cap_net_ bind_service= +ep`).