safe_asterisk ?

Home » Asterisk Users » safe_asterisk ?
Asterisk Users 5 Comments

Hi List,

What do it mean safe_asterisk ? I read too much about it but how it’s works
as Daemon process?
When We install asterisk with the help of .tar file then safe_asterisk is
install or not ? If yes then how can we work with that ?
I am too much confusing..

5 thoughts on - safe_asterisk ?

  • 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.

    Sent: Wednesday, November 23, 2011 1:16 AM
    Danny Nicholas

    Hi List,

    What do it mean safe_asterisk ? I read too much about it but how it’s works
    as Daemon process?
    When We install asterisk with the help of .tar file then safe_asterisk is
    install or not ? If yes then how can we work with that ?
    I am too much confusing..

  • 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.

  • 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

  • Hi All,

    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 ??

    On Wed, Nov 23, 2011 at 11:30 PM, Anton Kvashenkin
    wrote: