[Bug 39767] /etc/init.d/asterisk script does not stop safe_asterisk correctly if asterisk is not running

Brad Whittington launchpad at radbrad.rucus.net
Tue Jul 4 14:00:50 UTC 2006


Public bug reported:

looking at line 72 of /etc/init.d/asterisk:
        echo -n "Stopping $DESC: "
        if [ "$RUNASTSAFE" = "yes" ];then
                # hopefully this will work. Untested
                $REALDAEMON -rx 'stop now' > /dev/null  || true
        else ...

this is possibly a problem better handled in safe_asterisk:

It seems that if asterisk cannot start up, and you have configured "safe
mode", then it will continue to try restarting asterisk indefinately,
even if you run /etc/init.d/asterisk stop

perhaps safe_asterisk needs some kind of limit, like if it tries to
restart asterisk 10 times in a short period, or the init script should
issue a kill to both the daemon, and the container script?

** Affects: asterisk (Ubuntu)
     Importance: Medium
     Assignee: MOTU
         Status: Unconfirmed

-- 
/etc/init.d/asterisk script does not stop safe_asterisk correctly if asterisk is not running
https://launchpad.net/bugs/39767




More information about the universe-bugs mailing list