Make XENSTORED_DEBUG create a xenstored trace logfile.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-07-27 17:03:00 +00:00
1 parent 0e358737de
commit 55e1cda4c0
1 file changed
+6 -2
+6 -2
View File
@@ -184,9 +184,13 @@ class Daemon:
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.