aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-01-30 14:53:54 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-01-30 15:22:11 +0100
commitb3222f541ef1ce02e8b5708066a0364cd0872a10 (patch)
treea8b822de510043dae5eab5e36e3e0bde2996bdf7
parent97c87447df3ff717a55813269f6077bda45a163b (diff)
downloadaports-b3222f541ef1ce02e8b5708066a0364cd0872a10.tar.gz
aports-b3222f541ef1ce02e8b5708066a0364cd0872a10.tar.bz2
aports-b3222f541ef1ce02e8b5708066a0364cd0872a10.tar.xz
community/kea: fix problem with kea service doesn't want to stop
It often happens to me that kea process got stuck when stopping the service. This patch changes the behaviour of the start-stop-daemon to send SIGINT to the process if it doesn't die within 5 seconds and if it's still running after 1 second, then SIGKILL.
-rw-r--r--community/kea/APKBUILD4
-rw-r--r--community/kea/kea.initd.in1
2 files changed, 3 insertions, 2 deletions
diff --git a/community/kea/APKBUILD b/community/kea/APKBUILD
index d8e6ca9e25..c712d5c1c7 100644
--- a/community/kea/APKBUILD
+++ b/community/kea/APKBUILD
@@ -4,7 +4,7 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
pkgname=kea
pkgver=1.7.3
-pkgrel=3
+pkgrel=4
pkgdesc="DHCPv4 and DHCPv6 server from ISC"
url="http://kea.isc.org"
# armhf, armv7: limited by log4cplus
@@ -250,4 +250,4 @@ sha512sums="17720bd5f119e5fe1cea9ab3642630757fe645c662ab8efb1af0bd301786ccb950c7
574b4aacef03c2d4a556b4ff8b152b66efd6fdc27ad09373d41c72df15f8a2cd2386e0bbe7e07f1370d9cd11e0954fc679f3d57e6b647d601cc06e0c63bc8712 use-runstatedir-for-pid-file-location.patch
062e6eb88c49aeeac5d78c37c43cda1ff753e19f833aaa1525e37f66eede819910d4849bd954f3ef8ceb1b13e747953c99e2a9a4d9755b6da8d82c4e08b2b55c put-LOCKFILE_DIR-to-runstatedir.patch
5b93d96f2cbdce327ffceef5ace19ba5327a0c7d0d61714e35a0d72912ecbbec6a1864249612b48f8db20dffc3622170c3e21b1a67297fd834f47b94db85b9d7 kea-admin-remove-builddir.patch
-6603e015f6a03e6d45bad57aae0ec2d8e55dd614a609f1069366f01d8bdd6f1da4437c2cec29acce41e33cef6cdf18319a011bd5d7475db1e0fa822953d87b01 kea.initd.in"
+4029a526a210cb49ca480fea728dfae5933371244df6348411081db1e8b23924cbbdde5fa745ab4c14552a95451953a18a65d7660227bc0bb1d51be708fab92f kea.initd.in"
diff --git a/community/kea/kea.initd.in b/community/kea/kea.initd.in
index 21d87c53db..252e54d18f 100644
--- a/community/kea/kea.initd.in
+++ b/community/kea/kea.initd.in
@@ -3,6 +3,7 @@
: ${cfgfile:="/etc/kea/@@NAME@@.conf"}
: ${logger_dest:="syslog"}
: ${command_user:="kea"}
+: ${retry:="SIGTERM/5/SIGINT/1/SIGKILL/1"}
: ${wait:=300}
name="@@NAME@@"