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
kernel.core_uses_pid = 1 kernel.core_pattern = /var/tmp/core.%p.%e.%s fs.suid_dumpable = 1 So my question is: what are you guys using? 2011/11/23 Paul Belanger <[email protected]> > On 11-11-23 09:21 AM, Tzafrir Cohen wrote: > >> On Wed, Nov 23, 2011 at 08:16:36AM -0600, Danny Nicholas wrote: >> >>> Safe_asterisk refers to the bash script /usr/sbin/safe_asterisk which is >>> installed by all Asterisk installs whether by rpm, tar or svn. It does >>> exhibit daemon-like behavior in that it is run as a background process >>> and >>> will restart itself if you kill it incorrectly. >>> >> >> Note that systems with upstart / systemd will do that more relibly. If >> you run asterisk under one of those, use a plain upstart / systemd init >> config rather than a legacy sysv init.d script and avoid using >> safe_asterisk. >> >> We should consider updating the Makefile in asterisk trunk to start > using them. More and more OS are starting to support them. > > -- > Paul Belanger > Digium, Inc. | Software Developer > twitter: pabelanger | IRC: pabelanger (Freenode) > Check us out at: http://digium.com & http://asterisk.org > > > -- > ______________________________**______________________________**_________ > -- 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<http://lists.digium.com/mailman/listinfo/asterisk-users> >
-- _____________________________________________________________________ -- 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
