[bind10-dev] Shutting down a process
Tomek Mrugalski
tomasz at isc.org
Fri May 11 16:52:00 UTC 2012
Hi,
I'm working on msgq integration with dhcp4. According to
http://bind10.isc.org/docs/bind10-guide.html#bind10.config, one can
remove a process by issuing "config remove Boss/components dhcp4". It
does not work for me (my dhcp4 process does not receive shutdown
command). When I send shutdown command explicitly ("Dhcp4 shutdown"), it
works.
Did I do something wrong? I don't have any experience with msgq, so this
my be a trivial mistake or omission.
The full set of commands is:
> config add Boss/components b10-dhcp4
> config set Boss/components/b10-dhcp4/kind dispensable
> config commit
This works:
> Dhcp4 shutdown
[command received by dhcp4 process]
This does not:
> config remove Boss/components b10-dhcp4
> config commit
My spec is
{
"module_spec": {
"module_name": "Dhcp4",
"module_description": "DHCPv4 server daemon",
"config_data": [
{ "item_name": "interface",
"item_type": "string",
"item_optional": false,
"item_default": "eth0"
}
],
"commands": [
{
"command_name": "shutdown",
"command_description": "Shuts down DHCPv4 server.",
"command_args": [
{
"item_name": "pid",
"item_type": "integer",
"item_optional": true
}
]
}
]
}
}
Why am I not receiving shutdown command? How can I debug msgq? If remove
command is not expected to send shutdown, it should be clarified in the
documentation.
Cheers,
Tomek
More information about the bind10-dev
mailing list