[Asterisk-Users] Asterisk MySQL CDR - MySQL starting too late
Eric Bishop
asterisk.eric at gmail.com
Sun Nov 20 20:39:56 MST 2005
I have:
[root at pbx ~]# chkconfig --list | grep mysql
mysqld 0:off 1:off 2:off 3:on 4:off 5:off 6:off
[root at pbx ~]# chkconfig --list | grep asterisk
asterisk 0:off 1:off 2:on 3:on 4:on 5:on 6:off
What would you suggest I do?
On 11/21/05, Matt Riddell <matt.riddell at sineapps.com> wrote:
>
> 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)
>
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>--
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051120/d145cc97/attachment.htm
More information about the asterisk-users
mailing list