aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/xmexample1
diff options
context:
space:
mode:
authoremellor@ewan <emellor@ewan>2005-09-30 13:59:28 +0100
committeremellor@ewan <emellor@ewan>2005-09-30 13:59:28 +0100
commit8a3d95851034b4e1d582380fae08e8c6f4f1192c (patch)
tree8aa6e850c6d4f065822b9c2de3e3a635ddcc6fba /tools/examples/xmexample1
parent3ee0160603a578c49506899d4e76b4b07902757c (diff)
downloadxen-8a3d95851034b4e1d582380fae08e8c6f4f1192c.tar.gz
xen-8a3d95851034b4e1d582380fae08e8c6f4f1192c.tar.bz2
xen-8a3d95851034b4e1d582380fae08e8c6f4f1192c.zip
Change rebooting specification so that we can have domains crash and stay
around to be debugged, for example. Fix problem in XendDomainInfo.eventChannel caused by a mis-merge. Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/examples/xmexample1')
-rw-r--r--tools/examples/xmexample136
1 files changed, 30 insertions, 6 deletions
diff --git a/tools/examples/xmexample1 b/tools/examples/xmexample1
index b3aecf854e..bd2e70d9a2 100644
--- a/tools/examples/xmexample1
+++ b/tools/examples/xmexample1
@@ -91,11 +91,35 @@ root = "/dev/hda1 ro"
extra = "4"
#----------------------------------------------------------------------------
-# Set according to whether you want the domain restarted when it exits.
-# The default is 'onreboot', which restarts the domain when it shuts down
-# with exit code reboot.
-# Other values are 'always', and 'never'.
-
-#restart = 'onreboot'
+# Configure the behaviour when a domain exits. There are three 'reasons'
+# for a domain to stop: poweroff, reboot, and crash. For each of these you
+# may specify "destroy", meaning that the domain is cleaned up as normal,
+# "restart", meaning that a new domain is started in place of the old one, or
+# "preserve", meaning that no clean-up is done until the domain is manually
+# destroyed (using xm destroy, for example).
+#
+# The default is
+#
+# on_poweroff = 'destroy'
+# on_reboot = 'restart'
+# on_crash = 'restart'
+#
+# For backwards compatibility we also support the deprecated option restart
+#
+# restart = 'onreboot' means on_poweroff = 'destroy'
+# on_reboot = 'restart'
+# on_crash = 'destroy'
+#
+# restart = 'always' means on_poweroff = 'restart'
+# on_reboot = 'restart'
+# on_crash = 'restart'
+#
+# restart = 'never' means on_poweroff = 'destroy'
+# on_reboot = 'destroy'
+# on_crash = 'destroy'
+
+#on_poweroff = 'destroy'
+#on_reboot = 'restart'
+#on_crash = 'restart'
#============================================================================