put xen console message into syslog but xm dmesg is not affected
PATCH 3/4 put xen console message into syslog but xm dmesg is not affected
[3/4] modify xend for automatically starting xenlogd
Signed-off-by Masaki Kanno <[email protected]>
Signed-off-by Katsuhito Minai <[email protected]>
tools/misc/xend +7 -0
@@ -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