e171ca55ba
FreeSWITCH is a scalable open source cross-platform telephony platform designed to route and interconnect popular communication protocols using audio, video, text or any other form of media. It was created in 2006 to fill the void left by proprietary commercial solutions. FreeSWITCH also provides a stable telephony platform on which many applications can be developed using a wide range of free tools. WWW: https://freeswitch.org PR: 205681 Submitted by: corsmith@gmail.com, numisemis@yahoo.com
30 lines
510 B
Bash
30 lines
510 B
Bash
#!/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"
|