search for: mywatch

Displaying 1 result from an estimated 1 matches for "mywatch".

Did you mean: mypatch
2007 Jan 10
1
xenstore watch for domU shutdown
...e.xstransact import xstransact #domid of the domU guest domid = int(argv[1]) xs = xshandle() path = xs.get_domain_path(domid) def myHandleShutdownWatch(_): f = open("/scratch/TEST", "w") f.write("Shutdown called") f.close() return True mywatch = xswatch(path+"/control/shutdown",myHandleShutdownWatch) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel