opnsense-ports/net/freeswitch/files/freeswitch.in
Franco Fichtner a9154630f8 */*: sync with upstream
Taken from: FreeBSD
2016-03-12 19:22:54 +01:00

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"