Package: unbound Version: 1.4.6-1 Severity: wishlist Tags: patch
The current init script includes the facility for an administrator to restart|force-reload unbound, but the standard 'reload' argument has been omitted. The unbound changelog indicates that there was once a problem with the libevent dependency where signals (e.g. SIGHUP for reloading) caused unbound to exit unintentionally, but that was long since fixed. These days libev3 is used instead of libevent. While 'reload' is an optional argument for debian init scripts, in my view it remains a useful one. The following patch allows configuration reload without re-starting the unbound process. diff -urN unbound.original unbound --- unbound.original 2010-08-15 23:32:29.000000000 +0100 +++ unbound 2011-03-31 12:13:01.672877622 +0100 @@ -70,9 +70,20 @@ fi ;; + reload) + if $UNBOUND_ENABLE; then + log_daemon_msg "Reloading $DESC" "$NAME" + if start-stop-daemon --stop --pidfile $PIDFILE --signal 1; then + log_end_msg 0 + else + log_end_msg 1 + fi + fi + ;; + *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|reload}" >&2 exit 1 ;; esac -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages unbound depends on: ii adduser 3.112+nmu2 add and remove users and groups ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libev3 1:3.9-1 high-performance event loop librar ii libldns1 1.6.6-2 ldns library for DNS programming ii libssl0.9.8 0.9.8o-4squeeze1 SSL shared libraries ii openssl 0.9.8o-4squeeze1 Secure Socket Layer (SSL) binary a unbound recommends no packages. unbound suggests no packages. -- Configuration Files: /etc/default/unbound changed [not included] /etc/init.d/unbound changed [not included] /etc/unbound/unbound.conf changed [not included] -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org