diff --git a/debian/changelog b/debian/changelog index 3e9d6cc..e2e6159 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ dnsmasq (2.61-1) unstable; urgency=low * New upstream. + * Provide "dump-stats" initscript method. (closes: #654656) + * Add (empty) build-indep and build-arch rules targets. -- Simon Kelley Tue, 6 Mar 2012 19:45:43 +0000 diff --git a/debian/init b/debian/init index d966fc0..0ca08d7 100644 --- a/debian/init +++ b/debian/init @@ -256,8 +256,11 @@ case "$1" in *) log_success_msg "(unknown)" ; exit 4 ;; esac ;; + dump-stats) + kill -s USR1 `cat /var/run/dnsmasq/$NAME.pid` + ;; *) - echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|status}" >&2 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|dump-stats|status}" >&2 exit 3 ;; esac diff --git a/debian/rules b/debian/rules index 8fb473f..09ce2a0 100755 --- a/debian/rules +++ b/debian/rules @@ -184,7 +184,10 @@ endef # Below here is fairly generic really binary: binary-arch binary-indep + build: +build-arch: +build-indep: checkroot: test root = "`whoami`"