Buglet in nsdc

do_controlled_stop() {
         if [ -s ${pidfile} ]; then
                 pid=`cat ${pidfile}`
                 controlled_stop ${pid} && return 0
         else
                 echo "nsd is not running, starting anyway" && return 0
         fi
         return 1
}

That should be "stopping anyway"

Paul

Hi Paul,

You would think that seeing only this code snippet. However,
do_controlled_stop is part of nsdc restart and thus if NSD is not
running, we cannot stop it, but we start it anyway (despite it not
being a *re*start).

Best regards,
  Matthijs