#!/bin/sh

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

. %%RC_SUBR%%

name=openpbx
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/openpbx

load_rc_config $name

pidfile=${openpbx_pidfile:-"/var/run/openpbx.pid"}

openpbx_enable=${openpbx_enable:-"NO"}

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1