Add reload command to rc.d script.

Remove sudo from rc.d - it should not be a requirement to stop your VoIP
server.
This commit is contained in:
sborrill 2008-07-10 08:23:20 +00:00
parent 12137ba67b
commit 459999bf0a
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.55 2008/06/19 08:14:29 wiz Exp $
# $NetBSD: Makefile,v 1.56 2008/07/10 08:23:20 sborrill Exp $
DISTNAME= asterisk-1.2.29
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= comms net audio
MASTER_SITES= http://ftp.digium.com/pub/asterisk/ \
http://ftp.digium.com/pub/asterisk/old-releases/

View file

@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: asterisk.sh,v 1.2 2006/11/01 18:59:16 mjl Exp $
# $NetBSD: asterisk.sh,v 1.3 2008/07/10 08:23:20 sborrill Exp $
#
# PROVIDE: asterisk
# REQUIRE: DAEMON
@ -19,10 +19,10 @@ name="asterisk"
rcvar=$name
command="@PREFIX@/sbin/asterisk"
required_files="@PKG_SYSCONFDIR@/asterisk.conf"
extra_commands="reload"
#start_cmd="asterisk_doit start"
#restart_cmd="asterisk_doit restart"
stop_cmd="sudo asterisk -r -x 'stop gracefully' >/dev/null"
stop_cmd="asterisk -r -x 'stop gracefully' >/dev/null"
reload_cmd="asterisk -r -x 'reload' >/dev/null"
asterisk_nice="-20"
load_rc_config $name