Commit Graph
12 Commits
Author SHA1 Message Date
emellor@leeni.uk.xensource.com 933f5440b4 Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists before
trying to save into it.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-14 11:56:25 +00:00
emellor@leeni.uk.xensource.com 4213a82e5b Use xm create's --dryrun option to get the name from the configuration file,
rather than the eversoskanky approach taken previously (use grep, and replace
any occurrences of %d with [0-9]* !)

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 16:25:13 +00:00
emellor@leeni.uk.xensource.com a16c06e77e Fix usleep definition -- we would be sleeping 1000 times too long if the usleep
command were not available elsewhere on the machine (on my Debian boxes, for
example).

Sleep for a configurable amount of time between xm create calls (by default,
5 seconds).  This spaces out the booting of the new domains, meaning that they
should not thrash the disk so much.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-07 15:41:41 +00:00
emellor@leeni.uk.xensource.com 6ee89dae79 Fix the check for non-existence of the save/restore directories, by using &&
rather than -a.  The former shortcuts at the script level, whereas the latter
does not, which means that the backtick-enclosed arguments are evaluated
regardless of the success of preceding tests.

Tidy the aforementioned test into a function of its own.

Add an implementation of usleep for those systems that only have sleep (Debian,
for example).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-10-26 16:59:13 +01:00
emellor@leeni.uk.xensource.com b043099b44 New xendomains init script, courtesy of Kurt Garloff:
It now allows the user to configure what he wants to be done on
xendomains stop: sysrq, migrate, save, or shutdown.
For this to be safe, a timeout has been introduced (optional).
On start, saved domains may be restored, and not yet started
domains from the auto start dir will be started in addition.
status reports missing domains, restart and reload work as well.

The init script is somewhat SUSE-ish, but it should work on LSB
compliant and on RH based distros as well.

I would appreciate this to be put into tools/examples/init.d/

Signed-off-by: Kurt Garloff <garloff@suse.de>
2005-10-26 14:55:32 +01:00
iap10@firebug.cl.cam.ac.uk e605a33bc9 bitkeeper revision 1.1236.1.95 (423d90c7SBXNlShGVmT7ksTwZFp-Bw)
LSM INIT INFO block added to xendomains
From: Kurt Garloff
Signed-off-by: ian@xensource.com
2005-03-20 15:03:35 +00:00
doogie@brainfood.com[kaf24] 61b59d9dd5 bitkeeper revision 1.1159.270.2 (42330a929cE0pKehTkalVAgu8SLwKQ)
[PATCH] non-xen-init-exit.patch

Name: non-xen-init-exit.patch
Description: exit if not running on a xen dom0 kernel.
 If /proc/xen/privcmd doesn't exist, then exit successfully.  This allows
 for dual-boot setups, and installing xen before rebooting into a real
 xen kernel.
Signed-off-by: Adam Heath <doogie@brainfood.com>
2005-03-12 15:28:18 +00:00
cl349@freefall.cl.cam.ac.uk 5c18f70977 bitkeeper revision 1.1159.122.1 (4177c41conAxvsSnGCUYzYBlBVfqCQ)
Fix init.d/xendomains.
2004-10-21 14:13:48 +00:00
mwilli2@equilibrium.research 701ea937cc bitkeeper revision 1.1159.76.4 (41486b81LlL7eGHBxdKlHNQ3D64MYA)
Restore xendomains script.
2004-09-15 16:19:13 +00:00
kaf24@scramble.cl.cam.ac.uk 1b765c26bc bitkeeper revision 1.1040 (40e2a907DdoQGsSPReiCr496bEgtTQ)
Remove obsolete files.
2004-06-30 11:50:31 +00:00
mjw@wray-m-3.hpl.hp.com d8855c862a bitkeeper revision 1.1010.1.2 (40daf234LK7ohaP4f1QHGPJq0t3yZw)
Change configs to live in /etc/xen, other stuff in /var/xen.
Update xendomains to use xm.
2004-06-24 15:24:36 +00:00
kaf24@scramble.cl.cam.ac.uk 6d303dacab bitkeeper revision 1.819 (405ff597IZG6ZJZ_KUXF4rm3sEo57A)
console_client.py, xencons, Makefile, Console-HOWTO.txt:
  Console and controller modifications.
xend:
  new file
xendomains:
  Rename: tools/examples/xendomains -> tools/examples/init.d/xendomains
2004-03-23 08:30:15 +00:00