Hello my friends, I'm very worry about a problem i'm having...my asterisk got freez some times, every 5 or 6 days with NO trace in /var/log/asterisk/messages What i want to know is if safe_asterisk has something to be with this? This is what i have on my server: [root at mypbx ~]# ps -A | grep asterisk 9118 ? 00:01:30 asterisk [root at dreampbx ~]# ps aux | grep asterisk root 9118 0.1 0.3 29668 12520 ? Sl Mar22 1:30 /usr/sbin/asterisk -f -vvvg -c root 12096 0.0 0.0 4140 640 pts/1 S+ 18:40 0:00 grep asterisk I have another asterisk servers working and the commands above always shows safe _asterisk as a process... This safe_asterisk could be the cause of my problems? how does it works? how can i activate it? Thanks in advance for your valuable help! DD -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100323/c89a84e0/attachment.htm
On Tue, 23 Mar 2010, Danny Dias wrote:> This safe_asterisk could be the cause of my problems? how does it works? > how can i activate it?safe_asterisk is a script that usually lives at /usr/sbin/safe_asterisk. The script runs in the background. If it detects that Asterisk died, it can send you an email before restarting Asterisk. safe_asterisk is not the problem, but it can be useful as a band-aid until you find the real problem. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Thanks for all the answers... Asterisk starts at boot time, but if i "stop now" this is how i will make it up again: asterisk asterisk -vvvrc The weird think is that safe_Asterisk doesn't appear on my process, take a look: [root at mypbx ~]# ps -A | grep asterisk 14605 ? 00:00:02 asterisk 14704 pts/0 00:00:00 asterisk [root at mypbx ~]# ps aux | grep asterisk root 14605 0.1 0.2 26396 10256 ? Sl 12:16 0:02 /usr/sbin/asterisk -f -vvvg -c root 14704 0.0 0.0 4216 1276 pts/0 S+ 12:17 0:00 rasterisk r root 14819 0.0 0.0 4716 640 pts/3 S+ 12:44 0:00 grep asterisk Sometimes my asterisk got frozen...i mean, stop now does not work, asterisk still running but nothing works, not even internall or outgoing calls, my only way out isto kill the process and start again... Thanks in advance for all your help!> > ------------------------------ > > Message: 2 > Date: Wed, 24 Mar 2010 14:39:06 +0530 > From: Prince Singh <prince at drishti-soft.com> > Subject: Re: [asterisk-users] Safe_asterisk doesn't exists??? > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> > Message-ID: > <626964fc1003240209i6a48bd5cj93fbacd25e2cf9e9 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > @Danny: How do you start your Asterisk ? > > -- > Regards, > Prince Singh > > Drishti-Soft Solutions Pvt Ltd > > > On Wed, Mar 24, 2010 at 6:35 AM, Steve Edwards <asterisk.org at sedwards.com > >wrote: > > > On Tue, 23 Mar 2010, Danny Dias wrote: > > > > > This safe_asterisk could be the cause of my problems? how does it > works? > > > how can i activate it? > > > > safe_asterisk is a script that usually lives at /usr/sbin/safe_asterisk. > > > > The script runs in the background. If it detects that Asterisk died, it > > can send you an email before restarting Asterisk. > > > > safe_asterisk is not the problem, but it can be useful as a band-aid > until > > you find the real problem. > > > > -- > > Thanks in advance, > > ------------------------------------------------------------------------- > > Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 > PST > > Newline Fax: +1-760-731-3000 > > > > -- > > _____________________________________________________________________ > > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > New to Asterisk? Join us for a live introductory webinar every Thurs: > > http://www.asterisk.org/hello > > > > asterisk-users mailing list > > 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/20100324/f2b441a4/attachment-0001.htm > > ------------------------------ > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100324/6349acf7/attachment.htm
https://issues.asterisk.org/view.php?id=16887 do a "make update" ~ Andrew "lathama" Latham lathama at gmail.com * Learn more about OSS http://en.wikipedia.org/wiki/Open-source_software * Learn more about Linux http://en.wikipedia.org/wiki/Linux * Learn more about Tux http://en.wikipedia.org/wiki/Tux On Tue, Mar 23, 2010 at 7:16 PM, Danny Dias <ing.diasdanny at gmail.com> wrote:> Hello my friends, > I'm very worry about a problem i'm having...my asterisk got freez some > times, every 5 or 6 days with NO trace in /var/log/asterisk/messages > What i want to know is if safe_asterisk has something to be with this? > This is what i have on my server: > [root at mypbx ~]# ps -A | grep asterisk > ?9118 ? ? ? ? ?00:01:30 asterisk > [root at dreampbx ~]# ps aux | grep asterisk > root ? ? ?9118 ?0.1 ?0.3 29668 12520 ? ? ? ? Sl ? Mar22 ? 1:30 > /usr/sbin/asterisk -f -vvvg -c > root ? ? 12096 ?0.0 ?0.0 ?4140 ?640 pts/1 ? ?S+ ? 18:40 ? 0:00 grep asterisk > I have another asterisk servers working and the commands above always shows > safe _asterisk as a process... > This safe_asterisk could be the cause of my problems? how does it works? how > can i activate it? > Thanks in advance for your valuable help! > DD > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >
Thanks Andrew, I have some doubts regarding this issue, firstly, i'm using Asterisk 1.4.21 not 1.6 like the issue you showed to me ( https://issues.asterisk.org/view.php?id=16887) other thing is that i have many other asterisk servers working good and i never made this change By the way i'm using Centos and i can't find the line: start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS Is this a bug from Asterisk 1.6 only? Thanks in advance for your help my friend> ------------------------------ > > Message: 4 > Date: Wed, 24 Mar 2010 13:59:04 -0400 > From: Andrew Latham <lathama at gmail.com> > Subject: Re: [asterisk-users] Safe_asterisk doesn't exists??? > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> > Message-ID: > <c39c115d1003241059q5852f6a2y7c1e81b8ef1fa9d8 at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > https://issues.asterisk.org/view.php?id=16887 > > do a "make update" > > > ~ > Andrew "lathama" Latham > lathama at gmail.com > > * Learn more about OSS http://en.wikipedia.org/wiki/Open-source_software > * Learn more about Linux http://en.wikipedia.org/wiki/Linux > * Learn more about Tux http://en.wikipedia.org/wiki/Tux > > > > On Tue, Mar 23, 2010 at 7:16 PM, Danny Dias <ing.diasdanny at gmail.com> > wrote: > > Hello my friends, > > I'm very worry about a problem i'm having...my asterisk got freez some > > times, every 5 or 6 days with NO trace in /var/log/asterisk/messages > > What i want to know is if safe_asterisk has something to be with this? > > This is what i have on my server: > > [root at mypbx ~]# ps -A | grep asterisk > > ?9118 ? ? ? ? ?00:01:30 asterisk > > [root at dreampbx ~]# ps aux | grep asterisk > > root ? ? ?9118 ?0.1 ?0.3 29668 12520 ? ? ? ? Sl ? Mar22 ? 1:30 > > /usr/sbin/asterisk -f -vvvg -c > > root ? ? 12096 ?0.0 ?0.0 ?4140 ?640 pts/1 ? ?S+ ? 18:40 ? 0:00 grep > asterisk > > I have another asterisk servers working and the commands above always > shows > > safe _asterisk as a process... > > This safe_asterisk could be the cause of my problems? how does it works? > how > > can i activate it? > > Thanks in advance for your valuable help! > > DD > > > > -- > > _____________________________________________________________________ > > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > New to Asterisk? Join us for a live introductory webinar every Thurs: > > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > > > asterisk-users mailing list > > 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/20100331/f9329b08/attachment.htm