[sr-dev] git:5.1:df7c9486: pkg/kamailio/deb: wait for kamailio to exit before returning on sysvinit stop action

Victor Seva linuxmaniac at torreviejawireless.org
Wed Feb 7 12:17:07 CET 2018


Module: kamailio
Branch: 5.1
Commit: df7c94863d9d75533a4430af84ba3647ac4decf6
URL: https://github.com/kamailio/kamailio/commit/df7c94863d9d75533a4430af84ba3647ac4decf6

Author: Guillem Jover <gjover at sipwise.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2018-02-07T12:16:47+01:00

pkg/kamailio/deb: wait for kamailio to exit before returning on sysvinit stop action

We should not return until the service has been fully terminated,
otherwise a subsequent start might break as it can consider itself
as already running. And once the old instance stops there's nothing
left running.

This also makes it possibe to remove a sleep in the restart action.

(cherry picked from commit 4cc60ede961554220cd265bd212407f42d5b8262)

---

Modified: pkg/kamailio/deb/buster/kamailio.init
Modified: pkg/kamailio/deb/debian/kamailio.init
Modified: pkg/kamailio/deb/jessie/kamailio.init
Modified: pkg/kamailio/deb/precise/kamailio.init
Modified: pkg/kamailio/deb/sid/kamailio.init
Modified: pkg/kamailio/deb/stretch/kamailio.init
Modified: pkg/kamailio/deb/trusty/kamailio.init
Modified: pkg/kamailio/deb/wheezy/kamailio.init
Modified: pkg/kamailio/deb/xenial/kamailio.init

---

Diff:  https://github.com/kamailio/kamailio/commit/df7c94863d9d75533a4430af84ba3647ac4decf6.diff
Patch: https://github.com/kamailio/kamailio/commit/df7c94863d9d75533a4430af84ba3647ac4decf6.patch




More information about the sr-dev mailing list