xend: Drop long deprecation warning in /var/run not /tmp
authorIan Campbell <ian.campbell@citrix.com>
Fri, 11 Oct 2013 11:49:05 +0000 (12:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 16 Oct 2013 10:49:09 +0000 (11:49 +0100)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/python/xen/xm/xm

index 6a3f54555aacc9baaf03e96cd91459321ab77fc6..fef4272a50b379a7bd8dcfc7028e2a97c2146f72 100755 (executable)
@@ -6,7 +6,7 @@ from xen.xm import main
 
 print >>sys.stderr, ("WARNING: xend/xm is deprecated.")
 
-if not os.path.exists("/tmp/xm-deprecation-long-warning"):
+if not os.path.exists("/var/run/xm-deprecation-long-warning"):
     print >>sys.stderr, ("""
 xend is deprecated and scheduled for removal. Please migrate to another
 toolstack ASAP.
@@ -15,6 +15,6 @@ See http://wiki.xen.org/wiki/Choice_of_Toolstacks for information on
 other alternatives, including xl which is designed to be a drop in
 replacement for xm (http://wiki.xen.org/wiki/XL).
 """)
-    open("/tmp/xm-deprecation-long-warning", "w").close()
+    open("/var/run/xm-deprecation-long-warning", "w").close()
 
 main.main(sys.argv)