[XEND][LIFECYCLE] Configurable storage path for lifecycle support

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
acnt2@huggins.lce.cl.cam.ac.uk committed 2006-10-05 17:29:19 +01:00
1 parent 80e180d5b3
commit 5bbd381a3b
1 file changed
+8
+8
View File
@@ -93,6 +93,9 @@ class XendRoot:
dom0_vcpus_default = '0'
"""Default session storage path."""
xend_domains_path_default = '/var/lib/xend/domains'
components = {}
def __init__(self):
@@ -237,6 +240,11 @@ class XendRoot:
"""
return self.get_config_value("xend-unix-path", self.xend_unix_path_default)
def get_xend_domains_path(self):
""" Get the path for persistent domain configuration storage
"""
return self.get_config_value("xend-domains-path", self.xend_domains_path_default)
def get_network_script(self):
"""@return the script used to alter the network configuration when
Xend starts and stops, or None if no such script is specified."""
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.