]> xenbits.xensource.com Git - xcp/xen-api.git/commit
When the watchdog restarts xapi, invoke a full fork(),exec() rather than just a fork().
authorDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:06 +0000 (17:39 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:06 +0000 (17:39 +0000)
commitee555868f43f9d22e338ac449d8205680b3bf0f0
treeb07f168a9ad7b8f4c0a96a758499c847b9081528
parent3075ec3e7b49e498a9b0e8165ba9f33636dcb37c
When the watchdog restarts xapi, invoke a full fork(),exec() rather than just a fork().

There are three benefits:
  (1) this allows you to update the xapi binary and then use 'xe host-restart-agent'
  (2) top-level module declarations are re-evaluated and side-effects re-performed. This is particularly important after changing between a master and a slave, since this information is currently cached on demand. If you accidentally 'demand' the information before the fork() then it used to be persisted over the fork.
  (3) a xapi internal-start is now exactly the same as 'service xapi restart' (rather than there being subtle differences)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
ocaml/xapi/pool_role.ml
ocaml/xapi/pool_role.mli
ocaml/xapi/xapi.ml
ocaml/xapi/xapi_pool_transition.ml