]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
network: reorganize dnsmasq and radvd config file / startup
authorLaine Stump <laine@laine.org>
Mon, 20 Aug 2012 04:59:46 +0000 (00:59 -0400)
committerLaine Stump <laine@laine.org>
Tue, 18 Sep 2012 08:21:32 +0000 (04:21 -0400)
commit1ce4922e720e125421b3f8061d0eb6fdd152c41a
tree4b36b5f78a9952ca80b918647bff985331472b52
parentd22f4badbc3b46e0b2c428a79035f204bdf9f593
network: reorganize dnsmasq and radvd config file / startup

This patch splits the starting of dnsmasq and radvd into multiple
files, and adds new networkRefreshXX() and networkRestartXX()
functions for each. These new functions are currently commented out
because they won't be used until the next commit, and the compile options
require all static functions to be used.

networkRefreshXX() - rewrites any file-based config for dnsmasq/radvd,
and sends SIGHUP to the process to make it reread its config. If the
program isn't already running, it's just started.

networkRestartXX() - kills the given program, waits for it to exit
(see the comments in the function networkKillDaemon()), then calls
networkStartXX().

This commit is here mostly as a checkpoint to verify no change in
functional behavior after refactoring networkStartXX() functions to
fit in with these new functions.
src/network/bridge_driver.c