aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-01-08 08:22:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-01-20 18:10:24 +0100
commit0f4fd9aecbe257c07c98d48a067c5e5e06dc9039 (patch)
tree68abe5cdefc92d23af01dfbd921548f72d4b0b8c
parent18b5cab25223debddf802a6309b15db6947dba96 (diff)
downloadaports-0f4fd9aecbe257c07c98d48a067c5e5e06dc9039.tar.gz
aports-0f4fd9aecbe257c07c98d48a067c5e5e06dc9039.tar.bz2
aports-0f4fd9aecbe257c07c98d48a067c5e5e06dc9039.tar.xz
main/kamailio: increase timout for stopping service
Kamailio may need more time to shut down if there are many clients (1000+). Increase it to 10 seconds to avoid the error message: start-stop-daemon: 1 process refused to stop (cherry picked from commit a7dca5f03d6af851a0ae3eb91a03148a51f4c51a)
-rw-r--r--main/kamailio/APKBUILD4
-rw-r--r--main/kamailio/kamailio.initd2
2 files changed, 3 insertions, 3 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 60f7c9f12b..5f1bf18084 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -5,7 +5,7 @@
pkgname=kamailio
pkgver=5.1.8
-pkgrel=1
+pkgrel=2
# If building from a git snapshot, specify the gitcommit
# If building a proper release, leave gitcommit blank
@@ -539,4 +539,4 @@ sipdump() {
sha512sums="a9d93bde174834ba04909a2fe781aac34b288082f279b30d56c53fb318982026557fff0efa214f1d4604d27f717e3c77ec216b113e2c68d0639e05a730bd8769 kamailio-5.1.8.tar.gz
bbb00a3b680d2805aebf412a7cd77d5ac16e5edb45077516635101f78782dcaa779f84a3678fdd820fa7d7f021ae89271811b2e344092a8f5b7fe6eeee4c2599 0001-mohqueue.patch
af8362201957eae6b66baf7368c9ca884024209a396d77c5c52180c9aabe13772e9c6513e59721d39503e5bb7a8c1030f5c10301ea9055bddafb7f01ee2f3076 0004-src_core_tcp_read_c.patch
-cd6e3b677d803cd78561ad14d9b2589fd35ad0096f48047fdcb4ddc7d9103871357efba3b350946844cb53dbb081210746421fc420c22ac845b90251168a628e kamailio.initd"
+9e80fd194bc577e350345a8c5caf0aedb91d33651e14da219f9da2663f39ae713f150cbcb05dfed8473cadbef6bbde69bce100bb9d1d798822db5ed8ed706955 kamailio.initd"
diff --git a/main/kamailio/kamailio.initd b/main/kamailio/kamailio.initd
index 67131dd63c..e884351415 100644
--- a/main/kamailio/kamailio.initd
+++ b/main/kamailio/kamailio.initd
@@ -24,7 +24,7 @@ start() {
stop() {
ebegin "Stopping Kamailio"
- start-stop-daemon --stop --quiet --pidfile $pidfile
+ start-stop-daemon --retry 10 --stop --quiet --pidfile $pidfile
eend $?
}