Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101798 - Asterisk starts before Mysql
Summary: Asterisk starts before Mysql
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-08 14:17 UTC by Chris Gaffney
Modified: 2005-08-23 15:01 UTC (History)
0 users

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


Attachments
asterisk-init-dbsupport.patch (asterisk-init-dbsupport,472 bytes, patch)
2005-08-20 23:24 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gaffney 2005-08-08 14:17:49 UTC
When asterisk has vmdbmysql support added it starts before mysql if they are
both in the default runtime. This causes asterisk to crash because it cannot
connect to the mysql database.

Asterisk appears to come up just fine but instead it siletly crashes. A manual
restart (stop -> zap -> start) brings asterisk up like expected.

Reproducible: Always
Steps to Reproduce:


Actual Results:  
Asterisk silently dies in the background.

Expected Results:  
Asterisk should come up after mysql and if it does crash it should not appear to
be started (red marks vs green)

This happens with Asterisk 1.0.9
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-08-20 23:24:56 UTC
Created attachment 66452 [details, diff]
asterisk-init-dbsupport.patch

adding "mysql" after "use" in /etc/init.d/asterisk script should solve your
problem.
Comment 2 Daniel Black (RETIRED) gentoo-dev 2005-08-23 15:01:58 UTC
commited change.