#!/bin/ksh
#
# $OpenBSD: asterisk.rc,v 1.5 2018/01/11 19:27:11 rpe Exp $

daemon="/usr/local/sbin/asterisk"

. /etc/rc.d/rc.subr

pexp="${daemon}.*"

rc_start() {
	${rcexec} "/usr/local/sbin/safe_asterisk"
}

rc_stop() {
	${daemon} -rx "core stop now"
}

rc_cmd $1
