From eeeaf8bcb4feac380d246e3404687de25ee65e24 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 16 Oct 2018 10:07:34 +0100 Subject: Initial commit --- turnserver.service | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 turnserver.service (limited to 'turnserver.service') 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 -- cgit