diff options
author | mjl <mjl@pkgsrc.org> | 2006-11-01 18:59:16 +0000 |
---|---|---|
committer | mjl <mjl@pkgsrc.org> | 2006-11-01 18:59:16 +0000 |
commit | 1c5ff0e77eba2ec1742909ad7ca729f41dbe6101 (patch) | |
tree | 09521357adb4698675604967e20d446f69f59870 /comms | |
parent | 732ea3b71ee979bf2e585c34a698ba99a3beb93e (diff) | |
download | pkgsrc-1c5ff0e77eba2ec1742909ad7ca729f41dbe6101.tar.gz |
Make stopping asterisk actually work.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/asterisk/files/asterisk.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/comms/asterisk/files/asterisk.sh b/comms/asterisk/files/asterisk.sh index 2868810eb7e..71130999f35 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.1.1.1 2005/04/08 03:10:52 riz Exp $ +# $NetBSD: asterisk.sh,v 1.2 2006/11/01 18:59:16 mjl Exp $ # # PROVIDE: asterisk # REQUIRE: DAEMON @@ -21,8 +21,9 @@ 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" +stop_cmd="sudo asterisk -r -x 'stop gracefully' >/dev/null" +asterisk_nice="-20" load_rc_config $name run_rc_command "$1" |