Package: nsd3
Version: 3.2.7-1
Severity: wishlist
Tags: patch

Hi,

I'm not yet too familiar with nsd, but it seems to me that the most
common task for an administrator is to update a zone file and then apply
those changes.

The attached patch uses '/etc/init.d/nsd3 reload' to do the following:
* rebuild database
* reload database
* notify slaves

To me it seems natural to do these all together.

Thanks,
Corey


-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36.2 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
diff --git a/debian/init b/debian/init
index 44b636f..1c9ace9 100755
--- a/debian/init
+++ b/debian/init
@@ -47,6 +47,11 @@ case "$1" in
     stop)
         nsdc_log stop    "Stopping nsd3..."
         ;;
+    reload)
+        nsdc_log rebuild "Rebuilding database..."
+        nsdc_log reload  "Reloading database..."
+        nsdc_log notify  "Notifying slaves..."
+        ;;
     force-reload|restart)
         nsdc_log restart "Restarting nsd3..."
         ;;

Reply via email to