Hi all, I have installed some Asterisk machine, all with the same problem. My typical configuration is: - Asterisk 1.2.14 (or 1.4.0beta3) - CentOS 4.4 server. The problem is this: When I start Asterisk with the default init script (/etc/init.d/asterisk start) distributed with the source, and kill (or kill -9) Asterisk-pid, then safe_asterisk doesn't correctly work (it dies and not restart Asterisk). Instead, if I start Asterisk with safe_asterisk command from shell, after "kill Asterisk-pid", safe_asterisk restart Asterisk correctly. I would use the init script because I like to use Linux-HA that require this. Someone can help me? Thanks Andrea De Vita
On Tue, Feb 13, 2007 at 01:35:50PM +0100, Andrea De Vita wrote:> Hi all, > > I have installed some Asterisk machine, all with the same problem. > My typical configuration is: > - Asterisk 1.2.14 (or 1.4.0beta3) > - CentOS 4.4 server. > > > The problem is this: > When I start Asterisk with the default init script (/etc/init.d/asterisk > start) distributed with the source, and kill (or kill -9) Asterisk-pid, > then safe_asterisk doesn't correctly work (it dies and not restart > Asterisk). > Instead, if I start Asterisk with safe_asterisk command from shell, > after "kill Asterisk-pid", safe_asterisk restart Asterisk correctly. > > I would use the init script because I like to use Linux-HA that require > this.Edit that init.d script lightly not to use safe_asterisk. safe_asterisk is not close to robust anyway, and thus will only complicate things. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Ciao Andrea, Tzafrir is right...safe_asterisk is not very good. I had a discussed with him time ago. It is better for you to develop it by yourself. I made a version checking PIDs which is what safe_asterisk is lacking. Giorgio Incantalupo Andrea De Vita wrote:> Hi all, > > I have installed some Asterisk machine, all with the same problem. > My typical configuration is: > - Asterisk 1.2.14 (or 1.4.0beta3) > - CentOS 4.4 server. > > > The problem is this: > When I start Asterisk with the default init script > (/etc/init.d/asterisk start) distributed with the source, and kill (or > kill -9) Asterisk-pid, > then safe_asterisk doesn't correctly work (it dies and not restart > Asterisk). > Instead, if I start Asterisk with safe_asterisk command from shell, > after "kill Asterisk-pid", safe_asterisk restart Asterisk correctly. > > I would use the init script because I like to use Linux-HA that > require this. > > Someone can help me? > > Thanks > > Andrea De Vita > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >