It is possible to have certain domains start automatically at boot
time and to have dom0 wait for all running domains to shutdown before
it shuts down the system.
To specify a domain is to start at boot-time, place its configuration
file (or a link to it) under /etc/xen/auto/.
A Sys-V style init script for Red Hat and LSB-compliant systems is
provided and will be automatically copied to /etc/init.d/
during install. You can then enable it in the appropriate way for
your distribution.
For instance, on Red Hat:
# chkconfig --add xendomains
By default, this will start the boot-time domains in runlevels 3, 4
and 5.
You can also use the service command to run this script
manually, e.g:
# service xendomains start
Starts all the domains with config files under /etc/xen/auto/.
# service xendomains stop
Shuts down all running Xen domains.