[Pkg-pdns-maintainers] Bug#730684: pdns-recursor: /etc/init.d/pdns-recursor does not have a status target
Iain Georgeson
debian at iain.georgeson.me.uk
Thu Nov 28 08:33:05 UTC 2013
Package: pdns-recursor
Version: 3.3-3
Tags: patch
Dear Maintainer,
I'm driving pdns-recursor (and pdns) with puppet, and puppet likes the
init script to have a status target in order to manage a service. The
lack of one makes it sad.
I have included the needful below.
--- /etc/init.d/pdns-recursor 2012-06-19 03:41:27.000000000 +1200
+++ /tmp/puppet-file20131128-31316-11ot237 2013-11-28
21:20:31.876079624 +1
300
@@ -158,9 +158,12 @@
killall -v -9 pdns_recursor
echo "killed"
;;
+ status)
+ status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+ ;;
*)
- echo "Usage: $0 {start|stop|restart|force-reload|force-stop}" >&2
+ echo "Usage: $0
{start|stop|restart|force-reload|force-stop|status}" >&2
exit 3
;;
esac
-- System Information:
Debian Release: 7.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pdns-recursor depends on:
ii adduser 3.113+nmu3
ii libc6 2.13-38
ii libgcc1 1:4.7.2-5
ii liblua5.1-0 5.1.5-4
ii libstdc++6 4.7.2-5
ii lsb-base 4.1+Debian8+deb7u1
Versions of packages pdns-recursor recommends:
pn pdns-doc <none>
pdns-recursor suggests no packages.
-- Configuration Files:
/etc/init.d/pdns-recursor changed [not included]
/etc/powerdns/recursor.conf changed [not included]
-- no debconf information
More information about the Pkg-pdns-maintainers
mailing list