summaryrefslogtreecommitdiff
path: root/turnserver.service
diff options
context:
space:
mode:
Diffstat (limited to 'turnserver.service')
-rw-r--r--turnserver.service26
1 files changed, 26 insertions, 0 deletions
diff --git a/turnserver.service b/turnserver.service
new file mode 100644
index 0000000..20ff461
--- /dev/null
+++ b/turnserver.service
@@ -0,0 +1,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