blob: 41c8940d31f2d1254b52703701291807069003a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
#
# $FreeBSD$
#
# 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"
|