Bug 111095 - Update asterisk ebuild stop scripts
Bug#: 111095 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: voip@gentoo.org Reported By: gentoo@wildgooses.com
Component: Ebuilds
URL: 
Summary: Update asterisk ebuild stop scripts
Keywords:  
Status Whiteboard: 
Opened: 2005-11-01 01:35 0000
Description:   Opened: 2005-11-01 01:35 0000
Asterisk seems to take some time to die once you have done
"/etc/init.d/asterisk
stop" - this causes the restart script to usually error

I have "borrowed" the logic from the squid script which waits for the process
to
fully die before returning an error code.  This means that the script now
restarts correctly under normal usage

Can someone please pop this in the main asterisk ebuild

Reproducible: Always
Steps to Reproduce:

/etc/init.d/asterisk restart
 * Stopping asterisk PBX ...                                                   
                                                                      [ ok ]
 * Starting asterisk PBX (as asterisk:asterisk) ...
/usr/sbin/asterisk already running.                                            
                                                                      [ !! ]

------- Comment #1 From Ed Wildgoose 2005-11-01 02:36:56 0000 -------
Created an attachment (id=71856) [details]
updated start/stop script

Patch should be obvious.  I only changed the "STOP" function

------- Comment #2 From Rob Terhaar 2005-11-18 12:36:53 0000 -------
i've seen asterisk hang on shutdown due to mpg123 spinning out of control, i
often have to do a kill -9 on mpg123 for asterisk to stop correctly...

------- Comment #3 From Stefan Schweizer 2006-10-03 04:03:25 0000 -------
can you please make a patch (unified diff) or the current init script? It looks
not easy to merge here 


diff -u old new > patch

------- Comment #4 From Alin Năstac 2006-11-02 07:06:03 0000 -------
fixed in 1.2.13-r1