view files/turnserver.in @ 43:95d5ae53d170

Flavorize the support for the major databases MySQL and PostgreSQL. SQLite and/or Redis are OPTIONs -- as before. They are built into by default. Also provide a FLAVOR "alldb" to include all the major databases.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 17 Mar 2025 15:26:04 +0100
parents f271ad092ec7
children
line wrap: on
line source

#!/bin/sh

# 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"