[Pkg-dns-devel] Bug#876775: pdns-tools: /etc/init.d/pdns isrunning() broken
neonknight
debian-bugs at neonknight.tk
Mon Sep 25 18:37:26 UTC 2017
Package: pdns-tools
Version: 4.0.3-1
Severity: important
Tags: patch
before any function in /etc/init.d/pdns is executed, the script checks
if pdns is running by calling the function isrunning(). This function
determines the status of pdns by sending pdns_control ping. however,
pdns_control does not support a command named "ping". the correct
command would be "rping". this renders the init script unusable. even on
a systemd enabled system, the init script might still be used e.g. for
generating statistics with mrtg.
here's my suggestion for a patch to fix the issue:
$ diff pdns.orig pdns
56c56
< doPC ping > /dev/null
---
> doPC rping > /dev/null
PS apologies, for whatever reason my reportbug insists filing this bug
for pdns-tools. the affected package of course is pdns-server. some mod
please adjust this for me...
-- System Information:
Debian Release: 9.1
APT prefers stable
APT policy: (750, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pdns-tools depends on:
pn libboost-program-options1.62.0 <none>
ii libc6 2.24-11+deb9u1
ii libgcc1 1:6.3.0-18
ii libssl1.1 1.1.0f-3
ii libstdc++6 6.3.0-18
pdns-tools recommends no packages.
pdns-tools suggests no packages.
More information about the pkg-dns-devel
mailing list