bind 9 and killproc problem
Simon Waters
Simon at wretched.demon.co.uk
Fri Jul 6 19:50:12 UTC 2001
Pieter Grimmerink wrote:
>
> Since I upgraded to bind 9 (from 8) I started to have a problem
> with my start/stop script; it wouldn't stop the daemon.
>
> This is what the script does for starting the daemon:
>
> startproc /usr/local/sbin/named || return=$rc_failed
Weird syntax for setting return, what shell is this?!
> This works. Now to stop:
>
> killproc -TERM /usr/local/sbin/named || return=$rc_failed
>
> This fails.
>
> Does anyone have a clue what might be going on?
Nope - that is why shells have an option to echo current
command "sh -x".
Maybe you OS is funny about what it displays to "ps" for
threaded processes. What OS are you using?
> The daemon exits when I send it a -SIGTERM signal, which is what killproc
> does,
> according to it's manpage.
The BIND 9 manual recommends against using kill to stop the
daemon.
My init script does this - amongst other things.
stop)
# Stop daemons.
echo -n "Shutting down named: "
/usr/local/sbin/rndc stop
RETVAL=$?
--
Are you using the Internet to best effect ?
www.eighth-layer.com
Tel: +44(0)1395 232769 ICQ: 116952768
Moderated discussion of teleworking at
news:uk.business.telework
More information about the bind-users
mailing list