[Asterisk-Users] Asterisk MySQL CDR - MySQL starting too late

Matt Riddell matt.riddell at sineapps.com
Sun Nov 20 19:39:27 MST 2005


Eric Bishop wrote:
> Hi All,
> 
> I am running Asterisk (1.0.9.) on CentOS 4 with CDR recording being
> output to MySQL. However whenever the system boots up after a reboot I
> am needing to manually restart Asterisk because MySQL is after Asterisk
> in the service startup sequence and I get
> 
> ERROR[3367]: Failed to connect to mysql database cdr on localhost.
> 
> Anyone know of a simple and elegant way to fix this?
> 
> I'd prefer not to have to hack either MySQL or Asterisk init scripts

If it's running using services, you could set MySQL to start on level 2 and
Asterisk on level 3.

chkconfig --list

-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)




More information about the asterisk-users mailing list