aboutsummaryrefslogtreecommitdiff
path: root/net/freeswitch/files/freeswitch.in
blob: e53717e5bd6a68d638a76f8b1fc114dc0339a015 (plain) (blame)
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
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: freeswitch
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# freeswitch_enable (bool):	Set to NO by default.
#				Set it to YES to enable freeswitch.

. /etc/rc.subr

name=freeswitch
rcvar=${name}_enable

load_rc_config $name

: ${freeswitch_enable:="NO"}
: ${freeswitch_user:=freeswitch}
: ${freeswitch_group:=freeswitch}

command=%%PREFIX%%/bin/freeswitch

command_args="-nc"

run_rc_command "$1"