ia64/xen-unstable

changeset 6221:074aadbb0fa8

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>
author cl349@firebug.cl.cam.ac.uk
date Wed Aug 17 09:50:26 2005 +0000 (2005-08-17)
parents a4b22c7fbfa1
children 698a7dc797e4
files tools/misc/xend
line diff
     1.1 --- a/tools/misc/xend	Wed Aug 17 08:52:04 2005 +0000
     1.2 +++ b/tools/misc/xend	Wed Aug 17 09:50:26 2005 +0000
     1.3 @@ -117,11 +117,15 @@ def stop_xcs():
     1.4  	return    
     1.5  
     1.6  def start_xenstored():
     1.7 -    s,o = commands.getstatusoutput("/usr/sbin/xenstored --pid-file=/var/run/xenstore.pid");
     1.8 +    XENSTORED_TRACE = os.getenv("XENSTORED_TRACE")
     1.9 +    cmd = "/usr/sbin/xenstored --pid-file=/var/run/xenstore.pid"
    1.10 +    if XENSTORED_TRACE:
    1.11 +        cmd += " -T /var/log/xenstored-trace.log"
    1.12 +    s,o = commands.getstatusoutput(cmd)
    1.13  
    1.14  def start_consoled():
    1.15      if os.fork() == 0:
    1.16 -        os.execvp('/usr/sbin/xenconsoled', ['/usr/sbin/xenconsoled']);
    1.17 +        os.execvp('/usr/sbin/xenconsoled', ['/usr/sbin/xenconsoled'])
    1.18              
    1.19  def main():
    1.20      try: