Bug#742783: init script kills all asterisk processes on a machine

Daniel Pocock daniel at pocock.pro
Thu Mar 27 12:15:24 UTC 2014


Package: asterisk
Version: 1:11.7.0~dfsg-1

The "stop" method in the init script contains these two lines:

         start-stop-daemon --stop --quiet --oknodo
--retry=0/2/TERM/2/KILL/5 --exec $DAEMON
         start-stop-daemon --stop --quiet --oknodo
--retry=0/2/TERM/2/KILL/5 --exec $CANARY

If somebody is running multiple instances of Asterisk, this will kill
all of them even if they only meant to kill one of them

Would you consider removing these from the init script or could you
elaborate on why they are necessary?

The comments suggest that it is intended to kill any Asterisk CLI
processes - is it really necessary to do that in this way?  Shouldn't
the CLI gracefully disconnect/reconnect when the main Asterisk process
is killed/restarted?



More information about the Pkg-voip-maintainers mailing list