[nsd-users] nsdc restart falls into semi-infinite loop
Koh-ichi Ito
kohi at iri.co.jp
Fri Jul 24 06:59:36 UTC 2009
Hello Joerg,
At Fri, 24 Jul 2009 08:33:08 +0200,
Joerg Sonnenberger wrote:
>
> That should be > /dev/null 2>&1, shouldn't it?
I believe your fix is right.
Though I just examined only on NetBSD bed, the following
works fine.
*** /pub/nsd-3.2.2/sbin/nsdc Fri Jul 24 15:44:39 2009
--- /tmp/nsdc Fri Jul 24 15:57:34 2009
***************
*** 195,205 ****
if [ $try -eq 1 ]; then
kill -TERM ${pid}
else
! kill -TERM ${pid} &>/dev/null
fi
# really stopped?
! kill -0 ${pid} &>/dev/null
if [ $? -eq 0 ]; then
controlled_sleep ${try}
try=`expr ${try} + 1`
--- 195,205 ----
if [ $try -eq 1 ]; then
kill -TERM ${pid}
else
! kill -TERM ${pid} >/dev/null 2>&1
fi
# really stopped?
! kill -0 ${pid} >/dev/null 2>&1
if [ $? -eq 0 ]; then
controlled_sleep ${try}
try=`expr ${try} + 1`
Thanks a lot.
Koh-ichi Ito
More information about the nsd-users
mailing list