The stop and reload commands require the core prefix now.

This commit is contained in:
jnemeth 2010-11-29 04:20:32 +00:00
parent 4158c4d74d
commit 923c5319fb
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2010/11/15 05:18:16 jnemeth Exp $
# $NetBSD: Makefile,v 1.26 2010/11/29 04:20:32 jnemeth Exp $
#
DISTNAME= asterisk-1.6.2.14
@ -9,6 +9,7 @@ CATEGORIES= comms net audio
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \
http://downloads.asterisk.org/pub/telephony/sounds/releases/
PKGREVISION= 1
OWNER= jnemeth@NetBSD.org
HOMEPAGE= http://www.asterisk.org/

View file

@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: asterisk.sh,v 1.4 2010/11/10 09:29:13 jnemeth Exp $
# $NetBSD: asterisk.sh,v 1.5 2010/11/29 04:20:33 jnemeth Exp $
#
# PROVIDE: asterisk
# REQUIRE: DAEMON
@ -35,8 +35,8 @@ asterisk_prestart() {
chmod 0755 @ASTVARRUNDIR@
}
stop_cmd="$command -nr -x 'stop gracefully' >/dev/null"
reload_cmd="$command -nr -x 'reload' >/dev/null"
stop_cmd="$command -nr -x 'core stop gracefully' >/dev/null"
reload_cmd="$command -nr -x 'core reload' >/dev/null"
asterisk_nice="-20"
load_rc_config $name