Bug#362281: Stop now

Johan Thelmén jth at home.se
Mon May 29 15:44:16 UTC 2006


$REALDAEMON is stripping the '  so it only get the command stop

Tried to replace $CLIARGS in safe_asterisk with $* but then it exited with code 1 and restarted and restarted..
I probably missed something.

/etc/init.d/asterisk
  stop)
        echo -n "Stopping $DESC: "
#       if [ "$RUNASTSAFE" = "yes" ];then
#               # hopefully this will work. Untested
#               $REALDAEMON -rx 'stop now' > /dev/null  || true
#       else
                # Try gracefully.
                # this may hang in some cases. Specifically, when the asterisk
                # processes is stopped. No bother to worry about cleanup:
                # it will either fail or die when asterisk dies.
                ( $DAEMON -rx 'stop now' > /dev/null 2>&1 & ) &
#       fi

-- 
Johan Thelmén
Sweden Falun




More information about the Pkg-voip-maintainers mailing list