diff options
author | sborrill <sborrill> | 2008-07-10 08:23:20 +0000 |
---|---|---|
committer | sborrill <sborrill> | 2008-07-10 08:23:20 +0000 |
commit | 067b928f877eb1b0bd1006df6ce9b8d7da952834 (patch) | |
tree | 353acba0f43e554d5ceda43cb7c315fb87d0d062 /comms/asterisk | |
parent | 7ab34c321727765da28c42bfd851cd85c72a154a (diff) | |
download | pkgsrc-067b928f877eb1b0bd1006df6ce9b8d7da952834.tar.gz |
Add reload command to rc.d script.
Remove sudo from rc.d - it should not be a requirement to stop your VoIP
server.
Diffstat (limited to 'comms/asterisk')
-rw-r--r-- | comms/asterisk/Makefile | 4 | ||||
-rw-r--r-- | comms/asterisk/files/asterisk.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/comms/asterisk/Makefile b/comms/asterisk/Makefile index 0a1b6adfdea..09aac37df31 100644 --- a/comms/asterisk/Makefile +++ b/comms/asterisk/Makefile @@ -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/ diff --git a/comms/asterisk/files/asterisk.sh b/comms/asterisk/files/asterisk.sh index 71130999f35..dbf9e362e5b 100644 --- a/comms/asterisk/files/asterisk.sh +++ b/comms/asterisk/files/asterisk.sh @@ -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 |