Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111095 - Update asterisk ebuild stop scripts
Summary: Update asterisk ebuild stop scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 01:35 UTC by Ed Wildgoose
Modified: 2006-11-02 07:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated start/stop script (asterisk,1.61 KB, text/plain)
2005-11-01 02:36 UTC, Ed Wildgoose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2005-11-01 01:35:03 UTC
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 Ed Wildgoose 2005-11-01 02:36:56 UTC
Created attachment 71856 [details]
updated start/stop script

Patch should be obvious.  I only changed the "STOP" function
Comment 2 Rob Terhaar 2005-11-18 12:36:53 UTC
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 Stefan Schweizer (RETIRED) gentoo-dev 2006-10-03 04:03:25 UTC
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 Alin Năstac (RETIRED) gentoo-dev 2006-11-02 07:06:03 UTC
fixed in 1.2.13-r1