- Emit a notification when dbus rpc interface is ready to receive calls
- Fork demon process only after checking for exisiting xenvm instance,
so the client actually gets proper exit code as supposed
"expecting string method followed by dictionnary" in
Some (err_msg)
in
+ (* notify that dbus RPC is up and running *)
+ Vmact.notify state Xenvmlib.code_ping [ "dbus-rpc-up" ];
while not state.vm_monitors.monitor_dbus_quit do
(* check for outgoing work *)
state.vm_monitors.monitor_use_dbus_session <- !monitor_dbus_session;
state.vm_monitors.monitor_use_json <- !monitor_json;
- if !daemonize then
- Unixext.daemonize ();
-
let glob_debug = try Some (Sys.getenv "XENVM_DEBUG") with Not_found -> None in
if state.vm_cfg.debug || glob_debug <> None then (
let a =
);
check_vm uuid;
+ if !daemonize then
+ Unixext.daemonize ();
main state