Package: nsd Version: 4.1.22-2 Severity: wishlist Tags: patch Dear Maintainer,
the stop action of the current initscript takes a long time to stop the daemon, please find attached a patch which makes stopping faster. Kind regards Harald Jenny -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.17.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages nsd depends on: ii adduser 3.117 ii libc6 2.27-5 ii libevent-2.1-6 2.1.8-stable-4 ii libssl1.1 1.1.0h-4 ii lsb-base 9.20170808 ii openssl 1.1.0h-4 nsd recommends no packages. nsd suggests no packages.
--- nsd_ORIG 2018-06-15 08:34:28.000000000 +0200 +++ nsd_STOPPING 2018-08-12 21:34:16.223230246 +0200 @@ -37,6 +37,18 @@ do_tmpfiles $(basename $0) } +do_stop_cmd() { + nsd-control status >/dev/null 2>/dev/null + if [ "$?" -ne "0" ]; then + return 1 + fi + nsd-control stop >/dev/null + if [ "$?" -ne "0" ]; then + return 2 + fi + return 0 +} + do_reload() { nsd-control reload >/dev/null return $?