Devraj Mukherjee
2006-Jul-24 00:09 UTC
[asterisk-users] Solution init.d scripts for CentOS 4.3
Hi Everyone, I was having a lot of trouble starting up Asterisk and zaptel using the init.d scripts. I have worked on the scripts and now the zaptel script so it reads preferences of /etc/sysconfig/zaptel file and starts the zap interfaces properly. The asterisk init.d script does not load or unload any modules. Hope this is useful for anyone using CentOS with the same problems. -------------- next part -------------- A non-text attachment was scrubbed... Name: asterisk Type: application/octet-stream Size: 1306 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060724/aff9729c/asterisk.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: zaptel Type: application/octet-stream Size: 3310 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060724/aff9729c/zaptel.obj
Tzafrir Cohen
2006-Jul-29 00:39 UTC
[asterisk-users] Solution init.d scripts for CentOS 4.3
On Mon, Jul 24, 2006 at 05:09:52PM +1000, Devraj Mukherjee wrote:> Hi Everyone, > > I was having a lot of trouble starting up Asterisk and zaptel using > the init.d scripts. I have worked on the scripts and now the zaptel > script so it reads preferences of /etc/sysconfig/zaptel file and > starts the zap interfaces properly.If you have a proper zaptel init.d script, the first thing you should do is get rid of the ztcfg calls on modprobe. (/me notes http://bugs.digium.com/view.php?id=7613 )> > The asterisk init.d script does not load or unload any modules. > > Hope this is useful for anyone using CentOS with the same problems.Just a small OT note: none of those scripts contain proper init.d service dependency information. Asterisk should depend on networking, /usr, syslog(?) and , of course, zaptel. Did I miss anything? zaptel is a tricier one: in some strange cases it needs to run before starting the network start. -- Tzafrir Cohen sip:tzafrir@local.xorcom.com icq#16849755 iax:tzafrir@local.xorcom.com +972-50-7952406 jabber:tzafrir@jabber.org tzafrir.cohen@xorcom.com http://www.xorcom.com