diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-08-17 09:50:26 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-08-17 09:50:26 +0000 |
commit | 208cd71bf7861896b0c5bc443d571d9208ba0aa6 (patch) | |
tree | d4ae95d2bb60e735abb44e408ec27cea7f0c5017 | |
parent | 135f79ef6f7d2bd94d48012b07a251494e5f6c8b (diff) | |
download | xen-208cd71bf7861896b0c5bc443d571d9208ba0aa6.tar.gz xen-208cd71bf7861896b0c5bc443d571d9208ba0aa6.tar.bz2 xen-208cd71bf7861896b0c5bc443d571d9208ba0aa6.zip |
Add support for XENSTORED_TRACE to enable trace output from xenstored.
Set XENSTORED_TRACE in /usr/sbin/xenstored's environment to enable the
trace output.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
-rw-r--r-- | tools/misc/xend | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/misc/xend b/tools/misc/xend index 5abcdc6e04..db868b5c67 100644 --- a/tools/misc/xend +++ b/tools/misc/xend @@ -117,11 +117,15 @@ def stop_xcs(): return def start_xenstored(): - s,o = commands.getstatusoutput("/usr/sbin/xenstored --pid-file=/var/run/xenstore.pid"); + XENSTORED_TRACE = os.getenv("XENSTORED_TRACE") + cmd = "/usr/sbin/xenstored --pid-file=/var/run/xenstore.pid" + if XENSTORED_TRACE: + cmd += " -T /var/log/xenstored-trace.log" + s,o = commands.getstatusoutput(cmd) def start_consoled(): if os.fork() == 0: - os.execvp('/usr/sbin/xenconsoled', ['/usr/sbin/xenconsoled']); + os.execvp('/usr/sbin/xenconsoled', ['/usr/sbin/xenconsoled']) def main(): try: |