aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ocaml
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-12-15 16:52:22 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-12-15 16:52:22 +0000
commit90299f2abd2cbb855448510138023eba3e1a4614 (patch)
treee18593824889b190fc67e5cda064a5d286962d15 /tools/ocaml
parent25c4397fb24d0253dccfdb8bbe12cf3fd0504103 (diff)
downloadxen-90299f2abd2cbb855448510138023eba3e1a4614.tar.gz
xen-90299f2abd2cbb855448510138023eba3e1a4614.tar.bz2
xen-90299f2abd2cbb855448510138023eba3e1a4614.zip
oxenstored: install configuration file
First though: - Move it to /etc/xen/oxenstored.conf. - Use /var/run/xenstored.pid as default pid file - Disable test-eagain "Randomly failed a transaction with EAGAIN. Used for testing Xs user". Doesn't sound fun by default... Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/ocaml')
-rw-r--r--tools/ocaml/xenstored/Makefile2
-rw-r--r--tools/ocaml/xenstored/define.ml2
-rw-r--r--tools/ocaml/xenstored/oxenstored.conf (renamed from tools/ocaml/xenstored/xenstored.conf)4
-rw-r--r--tools/ocaml/xenstored/xenstored.ml2
4 files changed, 6 insertions, 4 deletions
diff --git a/tools/ocaml/xenstored/Makefile b/tools/ocaml/xenstored/Makefile
index 3a25d1d237..3302d576bb 100644
--- a/tools/ocaml/xenstored/Makefile
+++ b/tools/ocaml/xenstored/Makefile
@@ -52,5 +52,7 @@ bins: $(PROGRAMS)
install: all
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
$(INSTALL_PROG) oxenstored $(DESTDIR)$(SBINDIR)
+ $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
+ $(INSTALL_DATA) oxenstored.conf $(DESTDIR)$(XEN_CONFIG_DIR)
include $(OCAML_TOPLEVEL)/Makefile.rules
diff --git a/tools/ocaml/xenstored/define.ml b/tools/ocaml/xenstored/define.ml
index 19a699f6ce..89a6aacc88 100644
--- a/tools/ocaml/xenstored/define.ml
+++ b/tools/ocaml/xenstored/define.ml
@@ -23,7 +23,7 @@ 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 default_config_dir = "/etc/xensource"
+let default_config_dir = "/etc/xen"
let maxwatch = ref (50)
let maxtransaction = ref (20)
diff --git a/tools/ocaml/xenstored/xenstored.conf b/tools/ocaml/xenstored/oxenstored.conf
index f81c504a0c..9616d32036 100644
--- a/tools/ocaml/xenstored/xenstored.conf
+++ b/tools/ocaml/xenstored/oxenstored.conf
@@ -1,10 +1,10 @@
# default xenstored config
# Where the pid file is stored
-pid-file = /var/run/xensource/xenstored.pid
+pid-file = /var/run/xenstored.pid
# Randomly failed a transaction with EAGAIN. Used for testing Xs user
-test-eagain = true
+test-eagain = false
# Activate transaction merge support
merge-activate = true
diff --git a/tools/ocaml/xenstored/xenstored.ml b/tools/ocaml/xenstored/xenstored.ml
index 564dbeaddb..a86d558df7 100644
--- a/tools/ocaml/xenstored/xenstored.ml
+++ b/tools/ocaml/xenstored/xenstored.ml
@@ -71,7 +71,7 @@ let sighup_handler _ =
let config_filename cf =
match cf.config_file with
| Some name -> name
- | None -> Define.default_config_dir ^ "/xenstored.conf"
+ | None -> Define.default_config_dir ^ "/oxenstored.conf"
let default_pidfile = "/var/run/xenstored.pid"