view files/turnserver.in @ 3:244ecaf25a6f

Apply patches for CVE-2020-6061/TALOS-2020-0984 and CVE-2020-6062/TALOS-2020-0985. On GitHub these are the corresponding commits: - CVE-2020-6061 / TALOS-2020-0984: commit 51a7c2b9bf924890c7a3ff4db9c4976c5a93340a - CVE-2020-6062 / TALOS-2020-0985: commit e09bcd9f7af5b32c81b37f51835b384b5a7d03a8 These patches are required only when the Web admin interface is activated. But better safe than sorry...
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 26 Mar 2020 22:25:41 +0100
parents 1a06bf451a04
children f271ad092ec7
line wrap: on
line source

#!/bin/sh
#
# $FreeBSD: head/net/turnserver/files/turnserver.in 319998 2013-06-05 14:48:56Z gabor $
#
# PROVIDE: turnserver
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# turnserver_enable (bool):	Set to NO by default.
#				Set it to YES to enable turnserver.
# turnserver_config (path):	Set to %%PREFIX%%/etc/turnserver.conf
#				by default.

. /etc/rc.subr

name=turnserver
rcvar=turnserver_enable

load_rc_config $name

: ${turnserver_enable:=no}
: ${turnserver_config=%%PREFIX%%/etc/turnserver.conf}

command="%%PREFIX%%/bin/${name}"
command_args="--daemon -c ${turnserver_config}"
required_files=${turnserver_config}

run_rc_command "$1"