WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Make XENSTORED_DEBUG create a xenstored trace logfile.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Jul 2005 13:30:12 -0400
Delivery-date: Wed, 27 Jul 2005 17:30:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Make XENSTORED_DEBUG create a xenstored trace logfile., Xen patchbot -unstable <=