pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/asterisk Add reload command to rc.d script.
details: https://anonhg.NetBSD.org/pkgsrc/rev/274ef11cafb6
branches: trunk
changeset: 544090:274ef11cafb6
user: sborrill <sborrill%pkgsrc.org@localhost>
date: Thu Jul 10 08:23:20 2008 +0000
description:
Add reload command to rc.d script.
Remove sudo from rc.d - it should not be a requirement to stop your VoIP
server.
diffstat:
comms/asterisk/Makefile | 4 ++--
comms/asterisk/files/asterisk.sh | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 8ee1c8c53222 -r 274ef11cafb6 comms/asterisk/Makefile
--- a/comms/asterisk/Makefile Thu Jul 10 00:54:30 2008 +0000
+++ b/comms/asterisk/Makefile Thu Jul 10 08:23:20 2008 +0000
@@ -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 -r 8ee1c8c53222 -r 274ef11cafb6 comms/asterisk/files/asterisk.sh
--- a/comms/asterisk/files/asterisk.sh Thu Jul 10 00:54:30 2008 +0000
+++ b/comms/asterisk/files/asterisk.sh Thu Jul 10 08:23:20 2008 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index