Your message dated Tue, 10 Oct 2006 17:59:52 -0300
with message-id <[EMAIL PROTECTED]>
and subject line Fixed in 1.2.12.03-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: maradns
Version: 1.2.12.02-1
Tags: patch

  Hi everyone,

  I think I found three bugs related to the init.d script of the zoneserver of
maradns package :

1) zoneserver doesn't start if there are more than one configuration
   file mentionned in /etc/default/maradns ($SERVERS is used on the
   command line instead of $rcfile, which zoneserver doesn't
   understand).

2) zoneserver isn't started unless "zone_transfer_acl" is defined in the
   configuration file, even if it is (only) used to serve DNS records
   over TCP (with the "tcp_convert_server" option).

3) when zoneserver is stopped with "/etc/init.d/zoneserver stop", only
   the parent process of each server is killed : children processes keep
   running in the background and must be killed manually.



  For 1) and 2), here is a patch proposal :

--- /etc/init.d/zoneserver      2006-08-28 07:42:00.094624092 +0200
+++ /etc/init.d/zoneserver2     2006-08-28 05:57:15.210295564 +0200
@@ -33,11 +33,11 @@
   start)
        echo -n "Starting $DESC: "
        for rcfile in $SERVERS ; do
-           if grep -q -i "^zone_transfer_acl" $rcfile; then
+           if grep -q -i "^\(zone_transfer_acl\|tcp_convert_server\)" $rcfile; 
then
                SERVERNAME=`echo $rcfile | sed 's/\//_/g;s/^_*//;' | awk -F. 
'{print $NF}'`
                SERVERNAME=zoneserver.$SERVERNAME
                start-stop-daemon --start -m --pidfile /var/run/$SERVERNAME.pid 
\
-       --exec $DAEMON -- -f $SERVERS </dev/null 2>&1 | logger -p daemon.notice 
-t $SERVERNAME 2>/dev/null &
+       --exec $DAEMON -- -f $rcfile </dev/null 2>&1 | logger -p daemon.notice 
-t $SERVERNAME 2>/dev/null &
            else
                echo "No zone ACL's configured for $rcfile -- not starting 
zoneserver for it."
            fi
@@ -47,7 +47,7 @@
   stop)
        echo -n "Stopping $DESC: "
        for rcfile in $SERVERS ; do
-           if grep -q -i "^zone_transfer_acl" $rcfile; then
+           if grep -q -i "^\(zone_transfer_acl\|tcp_convert_server\)" $rcfile; 
then
                SERVERNAME=`echo $rcfile | sed 's/\//_/g;s/^_*//;' | awk -F. 
'{print $NF}'`
                SERVERNAME=zoneserver.$SERVERNAME
                start-stop-daemon --stop -m --quiet --pidfile 
/var/run/$SERVERNAME.pid \



  As for 3), I guess it's more like an upstream issue.

  Thanks.

-- 
Boris Dores


--- End Message ---
--- Begin Message ---
These bugs were fixed in 1.2.12.03-1. Please see the changelog.

Thanks everybody and greetings from Buenos Aires!

Best wishes,

--- End Message ---

Reply via email to