#!/bin/sh

# PROVIDE: asterisk
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable asterisk:
#
# asterisk_enable="YES"
#

. /etc/rc.subr

name=asterisk
rcvar=`set_rcvar`

command=/usr/local/sbin/asterisk

load_rc_config $name

pidfile=${asterisk_pidfile:-"/var/run/asterisk.pid"}

asterisk_enable=${asterisk_enable:-"NO"}

run_rc_command "$1"
