ia64/xen-unstable

changeset 5906:c6c6cfaab2bf

Make XENSTORED_DEBUG create a xenstored trace logfile.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Jul 27 17:03:00 2005 +0000 (2005-07-27)
parents 598c92956925
children cda48f530e93
files tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Wed Jul 27 17:00:24 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Wed Jul 27 17:03:00 2005 +0000
     1.3 @@ -184,9 +184,13 @@ class Daemon:
     1.4              log.info("Started xenstored, pid=%d", pid)
     1.5          else:
     1.6              # Child
     1.7 -            if XEND_DAEMONIZE and (not XENSTORED_DEBUG):
     1.8 +            if XEND_DAEMONIZE:
     1.9                  self.daemonize()
    1.10 -            os.execl("/usr/sbin/xenstored", "xenstored", "--no-fork")
    1.11 +            if XENSTORED_DEBUG:
    1.12 +                os.execl("/usr/sbin/xenstored", "xenstored", "--no-fork",
    1.13 +                         "-T", "/var/log/xenstored-trace.log")
    1.14 +            else:
    1.15 +                os.execl("/usr/sbin/xenstored", "xenstored", "--no-fork")
    1.16  
    1.17      def daemonize(self):
    1.18          if not XEND_DAEMONIZE: return