diff options
author | Hristo Venev <hristo@venev.name> | 2018-10-16 10:07:34 +0100 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2018-10-16 10:07:34 +0100 |
commit | eeeaf8bcb4feac380d246e3404687de25ee65e24 (patch) | |
tree | a1defe99175b6bd528031235f6b4bd8891c38e38 /turnserver.service |
Initial commit
Diffstat (limited to 'turnserver.service')
-rw-r--r-- | turnserver.service | 26 |
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 |