<div dir="ltr">Hi All,<br><br>Sorry for this stupid question. I want to check it, will asterisk make core dump and send e-mail if it cress. So I can cress it by any command ??<br> <br><br><div class="gmail_quote">On Wed, Nov 23, 2011 at 11:30 PM, Anton Kvashenkin <span dir="ltr"><<a href="mailto:anton.jugatsu@gmail.com">anton.jugatsu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="text-align:left">This is the right place to ask the question: what is the best practice to run asterisk safe_asterisk-like method, but without _using_ safe_asterisk shell script. Actually, what is safe-asterisk doing? It restarts asterisk process and renames core dumps for better understanding of the scenario of crashing. I'm using stable debian, obviously there is no upstart, neither systemd (@ squeeze, of course), so for restarting asterisk i can use runit or something like this. How about this, guys, is somebody using runit (or similliar software) in production. For core dumps, i've read that you can tweak a little bit sysctl.conf</div>
<div style="text-align:left"><br></div><div>kernel.core_uses_pid = 1</div><div>kernel.core_pattern = /var/tmp/core.%p.%e.%s</div><div>fs.suid_dumpable = 1</div><div><br></div><div>So my question is: what are you guys using?</div>
<div><div></div><div class="h5">
<div><br></div><div class="gmail_quote">2011/11/23 Paul Belanger <span dir="ltr"><<a href="mailto:pabelanger@digium.com" target="_blank">pabelanger@digium.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 11-11-23 09:21 AM, Tzafrir Cohen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Nov 23, 2011 at 08:16:36AM -0600, Danny Nicholas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Safe_asterisk refers to the bash script /usr/sbin/safe_asterisk which is<br>
installed by all Asterisk installs whether by rpm, tar or svn. It does<br>
exhibit daemon-like behavior in that it is run as a background process and<br>
will restart itself if you kill it incorrectly.<br>
</blockquote>
<br>
Note that systems with upstart / systemd will do that more relibly. If<br>
you run asterisk under one of those, use a plain upstart / systemd init<br>
config rather than a legacy sysv init.d script and avoid using<br>
safe_asterisk.<br>
<br>
</blockquote></div>
We should consider updating the Makefile in asterisk trunk to start using them. More and more OS are starting to support them.<span><font color="#888888"><br>
<br>
-- <br>
Paul Belanger<br>
Digium, Inc. | Software Developer<br>
twitter: pabelanger | IRC: pabelanger (Freenode)<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></font></span><div><div><br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br>
</div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br><br>
<br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Software Engineer<br></div><br>
</div>