let xenstored_proc_kva = "/proc/xen/xsd_kva"
let xenstored_proc_port = "/proc/xen/xsd_port"
-let xs_daemon_socket = "/var/run/xenstored/socket"
-let xs_daemon_socket_ro = "/var/run/xenstored/socket_ro"
+let xs_daemon_socket = Paths.xen_run_stored ^ "/socket"
+let xs_daemon_socket_ro = Paths.xen_run_stored ^ "/socket_ro"
-let default_config_dir = "/etc/xen"
+let default_config_dir = Paths.xen_config_dir
let maxwatch = ref (50)
let maxtransaction = ref (20)
let sigusr1_handler store =
try
let channel = open_out_gen [ Open_wronly; Open_creat; Open_trunc; ]
- 0o600 "/var/run/xenstored/db.debug" in
+ 0o600 (Paths.xen_run_stored ^ "/db.debug") in
finally (fun () -> Store.dump store channel)
(fun () -> close_out channel)
with _ ->
let quit = ref false in
if cf.restart then (
- DB.from_file store domains cons "/var/run/xenstored/db";
+ DB.from_file store domains cons (Paths.xen_run_stored ^ "/db");
Event.bind_dom_exc_virq eventchn
) else (
if !Disk.enable then (
Logging.init_xenstored_log();
if cf.activate_access_log then begin
- let post_rotate () = DB.to_file store cons "/var/run/xenstored/db" in
+ let post_rotate () = DB.to_file store cons (Paths.xen_run_stored ^ "/db") in
Logging.init_access_log post_rotate
end;
raise exc
done;
info "stopping xenstored";
- DB.to_file store cons "/var/run/xenstored/db";
+ DB.to_file store cons (Paths.xen_run_stored ^ "/db");
()