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

Jeremy Lainé jeremy.laine at m4x.org
Sat Mar 29 16:11:02 UTC 2014


On 03/29/2014 03:59 PM, Jonas Smedegaard wrote:
> I believe actually that this is an RC bug - Policy §9.3.2 says this:
>> The `init.d' scripts must ensure that they will behave sensibly (i.e., 
>> returning success and not starting multiple copies of a service) if 
>> invoked with `start' when the service is already running, or with 
>> `stop' when it isn't, and that they don't kill unfortunately-named 
>> user processes.  The best way to achieve this is usually to use 
>> `start-stop-daemon' with the `--oknodo' option.
> I.e. init script *must* play nice with other processes with same name!
>

OK for the motivation part, though I'd still like to hear what Daniel's usecase is.

As to "how to fix it":

- for asterisk itself we can probably rely on the PID file

- for asterisk canary, there is unfortunately no PID file

Jeremy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 242 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20140329/6f20bbb4/attachment.sig>


More information about the Pkg-voip-maintainers mailing list