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

[Xen-changelog] [xen-unstable] Print the time to xend-debug.log, when starting or restarting Xend.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 59ac1e90f1ac7bc199fb4b5072b4eca92bdc466d
# Parent  09aa7ed2431fa7a820a843f126bb6a4f8e3fbeef
Print the time to xend-debug.log, when starting or restarting Xend.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/server/SrvDaemon.py |    3 +++
 1 files changed, 3 insertions(+)

diff -r 09aa7ed2431f -r 59ac1e90f1ac tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py Wed Oct 25 11:44:58 2006 +0100
+++ b/tools/python/xen/xend/server/SrvDaemon.py Wed Oct 25 15:01:51 2006 +0100
@@ -9,6 +9,7 @@ import signal
 import signal
 import sys
 import threading
+import time
 import linecache
 import pwd
 import re
@@ -112,6 +113,8 @@ class Daemon:
             os.open('/dev/null', os.O_RDWR)
             os.dup(0)
             os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
+        print >>sys.stderr, ("Xend started at %s." %
+                             time.asctime(time.localtime()))
 
         
     def start(self, trace=0):

_______________________________________________
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®.