problem with bind stop
Stacey Jonathan Marshall
Stacey.Marshall at Sun.COM
Fri Jul 3 12:55:03 UTC 2009
On 01/07/2009 15:41, Joan Marc Riera wrote:
> Hello,
>
> we have some troubles with restart and stop.
>
> bind does not stop and I think it's because of a wrong kill argument
> on the stop) case.
Perhaps named is still saving updates... Try halt instead...
$ rndc
[....]
$ rndc
[...]
stop Save pending updates to master files and stop the server.
stop -p Save pending updates to master files and stop the server
reporting process id.
halt Stop the server without saving pending updates.
halt -p Stop the server without saving pending updates reporting
process id.
[...]
Stacey
>
> I think that the kill -0 $PID should be something else, is it possible?
>
> Many thanks
>
> Marc
>
>
> From /etc/init.d/bind9:
> stop)
> #here i erase some validations
> pid=$(/usr/sbin/rndc stop -p | awk '/^pid:/ {print $2}')
> if [ -n "$pid" ]; then
> while kill *-0* $pid 2>/dev/null; do
> log_progress_msg "waiting for pid $pid to die"
> sleep 1
> done
> fi
> log_end_msg $?
> ;;
>
>
> Our version:
> ii bind9 1:9.5.1.dfsg.P1-1 Internet
> Domain Name Server
> ii bind9-doc 1:9.5.1.dfsg.P1-1
> Documentation for BIND
> ii bind9-host 1:9.5.1.dfsg.P1-1 Version
> of 'host' bundled with BIND 9.X
> ii bind9utils 1:9.5.1.dfsg.P1-1
> Utilities for BIND
> ii libbind9-40 1:9.5.1.dfsg.P1-1 BIND9
> Shared Library used by BIND
>
More information about the bind-users
mailing list