[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Make XENSTORED_DEBUG create a xenstored trace logfile.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID c6c6cfaab2bfb0ca9fed4f354b8aec5bdc930dcb
# Parent  598c92956925ceb57b3f03f9be9923a52f53a748
Make XENSTORED_DEBUG create a xenstored trace logfile.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 598c92956925 -r c6c6cfaab2bf tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py Wed Jul 27 17:00:24 2005
+++ b/tools/python/xen/xend/server/SrvDaemon.py Wed Jul 27 17:03:00 2005
@@ -184,9 +184,13 @@
             log.info("Started xenstored, pid=%d", pid)
         else:
             # Child
-            if XEND_DAEMONIZE and (not XENSTORED_DEBUG):
+            if XEND_DAEMONIZE:
                 self.daemonize()
-            os.execl("/usr/sbin/xenstored", "xenstored", "--no-fork")
+            if XENSTORED_DEBUG:
+                os.execl("/usr/sbin/xenstored", "xenstored", "--no-fork",
+                         "-T", "/var/log/xenstored-trace.log")
+            else:
+                os.execl("/usr/sbin/xenstored", "xenstored", "--no-fork")
 
     def daemonize(self):
         if not XEND_DAEMONIZE: return

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.