Add systemd service file
Bug #1666456 reported by
Danilo Bargen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coturn (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Coturn provides a service file example here: https:/
To post a comment you must log in.
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`).