#!@RCD_SCRIPTS_SHELL@ # # $NetBSD: asterisk.sh,v 1.1.1.1 2005/04/08 03:10:52 riz Exp $ # # PROVIDE: asterisk # REQUIRE: DAEMON # KEYWORD: shutdown # # You will need to set some variables in /etc/rc.conf to start Asterisk: # # asterisk=YES if [ -f /etc/rc.subr ] then . /etc/rc.subr fi name="asterisk" rcvar=$name command="@PREFIX@/sbin/asterisk" required_files="@PKG_SYSCONFDIR@/asterisk.conf" #start_cmd="asterisk_doit start" #stop_cmd="asterisk_doit stop" #restart_cmd="asterisk_doit restart" load_rc_config $name run_rc_command "$1"