1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Use pdns_control utility instead of pdns init script.

The init script is not usable on systems using systemd (e.g. Debian stretch).
This commit is contained in:
Bas Couwenberg 2017-09-28 09:54:22 +02:00
parent a8d117a3f0
commit 87d30e5597
5 changed files with 53 additions and 26 deletions

View file

@ -9,11 +9,16 @@
#%# family=auto
#%# capabilities=autoconf
command="/etc/init.d/pdns dump"
command="/usr/bin/pdns_control list"
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
if [ -e /usr/bin/pdns_control ]; then
echo yes
exit 0
else
echo no
exit 1
fi
fi
if [ "$1" = "config" ]; then