[bind10-dev] shutdown problem
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Mon Sep 27 13:19:29 UTC 2010
At Mon, 27 Sep 2010 20:18:11 +0800,
"Likun Zhang" <zlkzhy at gmail.com> wrote:
> When I checking the code , I find almost all the processes(msgq, cfgmgr,
> auth, xfrout,xfrin) have catched the signal 'SIGINT', besides boss process.
> As my understanding, the expected shutdown process should be: send the
> "shutdown" command to boss, then boss will send the 'shutdown' command to
> separate sub process.
>
> The current behavior is: when user enter 'ctrl + c', every process will exit
> automatically by itself(xfrout and zonemgr can't do it now, I am fixing it),
> is it the shutdown way we expect? Did we plan to provide two ways to
> shutdown bind10?
I think we expect that behavior. IMO, it's something like 'rndc stop'
vs Ctl-C. While the most sophisticated way of shutdown is 'rndc
stop', we still allow Ctl-C as an alternative and users would expect
it to work.
We should also note that Ctl-C only works if the processes are working
foreground. Sending a SIGTERM by kill(1) or other tools should work,
but would be less common for multi-process systems like BIND 10. So
we'll need the shutdown command, too.
---
JINMEI, Tatuya
Internet Systems Consortium, Inc.
More information about the bind10-dev
mailing list