Bug#889745: kamailio: Wait for process to terminate on sysvinit stop action
Guillem Jover
gjover at sipwise.com
Tue Feb 6 17:30:14 UTC 2018
Package: kamailio
Version: 5.1.0-1
Severity: normal
Tags: patch
Hi!
The current init script does not wait for the process to finish when
doing a stop, this can break on certain conditions or when the daemon
is very slow to stop. As a new start might consider the service is
already running, exit with success, and then the old instance
terminates, leaving us with nothing being executed.
The attached patch should solve this. If you consider the timeout of 5
to be too quick we can always increment it.
I've not patched the alpine init script because that one uses the
s-s-d implementation coming from openrc, and I've got no idea how that
behaves. :)
Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Wait-for-kamailio-to-exit-before-returning-on-sysvin.patch
Type: text/x-diff
Size: 6552 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20180206/9e73a6a7/attachment.patch>
More information about the Pkg-voip-maintainers
mailing list