diff options
author | mjl <mjl> | 2006-11-01 18:59:16 +0000 |
---|---|---|
committer | mjl <mjl> | 2006-11-01 18:59:16 +0000 |
commit | 9949bc8bfdd494147314a9263fbf33b0e87699ed (patch) | |
tree | 09521357adb4698675604967e20d446f69f59870 /comms | |
parent | 02666a067ce2fc77b7f926318cfdf46b5c3c9846 (diff) | |
download | pkgsrc-9949bc8bfdd494147314a9263fbf33b0e87699ed.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" |