Skip to contentSkip to conversation

put xen console message into syslog but xm dmesg is not affected

PATCH In review MINAI Katsuhito 1 participant 1 message Jul 7, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 put xen console message into syslog but xm dmesg is not affected

[3/4] modify xend for automatically starting xenlogd

tools/misc/xend +7 -0
diff -r 8e55c5c11475 tools/misc/xend
@@ -93,6 +93,10 @@ def start_consoled():
     if os.fork() == 0:
         os.execvp('xenconsoled', ['xenconsoled'])
             
+def start_xenlogd():
+    if os.fork() == 0:
+        os.execvp('xenlogd', ['xenlogd'])
+            
 def main():
     try:
         check_logging()
@@ -106,16 +110,19 @@ def main():
     elif sys.argv[1] == 'start':
         start_xenstored()
         start_consoled()
+        start_xenlogd()
         return daemon.start()
     elif sys.argv[1] == 'trace_start':
         start_xenstored()
         start_consoled()
+        start_xenlogd()
         return daemon.start(trace=1)
     elif sys.argv[1] == 'stop':
         return daemon.stop()
     elif sys.argv[1] == 'restart':
         start_xenstored()
         start_consoled()
+        start_xenlogd()
         return daemon.stop() or daemon.start()
     elif sys.argv[1] == 'status':
         return daemon.status()

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel