Hi Lonnie

I can confirm you that the "tail -n3" change in the "safe_asterisk" 
command catch an asterisk crash and restart it...sob sob...

Here a sample of email message generated by safe_asterisk:

Asterisk on 'pbx-lecco' exited on signal 99.  Restarting Asterisk...

[Generated at 11:35:19 on September 14, 2011]


bye
Graziano


Il 08/09/2011 10.50, Lonnie Abelbeck ha scritto:
> Hi Graziano,
>
> I already changed the SVN so AstLinux 0.7.10 will use "tail -n3", it should 
> work for you, so you might test to be sure. (It is unusual the mostly empty 
> "user.info kernel:" line is added.)
>
> I agree "-n4" or "-n5" probably should be OK, but if "-n3" works it is best 
> to minimize the look-back window.
>
> Or, I could be persuaded to use "tail -n5" if you can convince me. :-)
>
> Lonnie
>
>
> On Sep 8, 2011, at 2:24 AM, Graziano Brioschi wrote:
>
>> Thanks Lonnie
>>
>> yesterday morning I already have replaced the "tail -n2" command with "tail 
>> -n5" in then "safe_asterisk" command; do you prefer a "-n3" or i can leave 
>> the "-n5" option?
>>
>> Graziano
>>
>>
>> Il 07/09/2011 18.02, Lonnie Abelbeck ha scritto:
>>> Hi Graziano,
>>>
>>> I have not seen such asterisk 1.4.42 segfaults, but to help Safe Asterisk 
>>> to catch the segfault (and auto restart asterisk) you can try this change:
>>> --
>>> $ service asterisk stop
>>>
>>> Edit "/usr/sbin/safe_asterisk"...
>>>
>>> Search for the string "tail -n2"
>>>
>>> Replace with "tail -n3", save change.
>>>
>>> $ service asterisk start
>>> --
>>>
>>> Let me know if this automatically restarts Asterisk when a segfault occurs.
>>>
>>> Lonnie
>>>
>>> PS:  Before upgrading in the future be certain you first undo the change 
>>> with:
>>> --
>>> $ service asterisk stop
>>> $ rm /oldroot/mnt/asturw/usr/sbin/safe_asterisk
>>> $ service asterisk start
>>> --
>>>
>>>
>>> On Sep 7, 2011, at 7:46 AM, Graziano Brioschi wrote:
>>>
>>>> hi list,
>>>>
>>>> I have a crash problem on a astlinux 0.7.9 system with asterisk 1.4.42.
>>>> Asterisk hangs randomly on this system with a messages like this (logged
>>>> in /var/log/messages):
>>>>
>>>> .....
>>>> Sep  7 11:09:36 pbx user.info kernel: asterisk[4269]: segfault at 84 ip
>>>> 40012e2c sp bd1fcb7c error 4
>>>> Sep  7 11:09:36 pbx user.info kernel:  in
>>>> libpthread-0.9.28.so[4000d000+a000]
>>>> Sep  7 11:09:36 pbx user.info kernel:
>>>> Sep  7 11:09:37 pbx user.info safe_asterisk: Asterisk shutdown normally.
>>>> .......
>>>>
>>>> Someone have some suggestions?
>>>>
>>>> The system is installed on a OpenVOX IPC110 embedded motherboard with
>>>> 2GB RAM, CF Sandisk UltraII 4Gb, one OpenVOX miniPCI B400M isdn bri card
>>>> and 20 Yealink SIP-T22P.
>>>>
>>>> Thanks
>>>> Graziano
>>>>
>>>> -- 
>>>>
>>>> Graziano Brioschi
>>>>
>>>> -->    U4E<--
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Using storage to extend the benefits of virtualization and iSCSI
>>>> Virtualization increases hardware utilization and delivers a new level of
>>>> agility. Learn what those decisions are and how to modernize your storage
>>>> and backup environments for virtualization.
>>>> http://www.accelacomm.com/jaw/sfnl/114/51434361/
>>>> _______________________________________________
>>>> Astlinux-users mailing list
>>>> Astlinux-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>>>
>>>> Donations to support AstLinux are graciously accepted via PayPal to 
>>>> pay...@krisk.org.
>>>>
>>>>
>> -- 
>>
>> Graziano Brioschi
>>
>> Outland s.a.s.
>> sede operativa:
>> Via A. Don Rocca, 13
>> 20030, Senago (MI)
>> tel: 02 9948 6014
>> mobile: 328 8382622
>> email: graziano.brios...@outland.it
>> -->   U4E<--
>>
>>
>>

-- 

Graziano Brioschi

Outland s.a.s.
sede operativa:
Via A. Don Rocca, 13
20030, Senago (MI)
tel: 02 9948 6014
mobile: 328 8382622
email: graziano.brios...@outland.it
-->  U4E<--


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to