Commit Graph
22 Commits
Author SHA1 Message Date
apeace@paploo.uk.xensource.com 4d9b8db9fc Fix the example xend init.d script so it correctly detects when it is running
in a guest.

Signed-off by: Andrew Peace <andrew@xensource.com>
2006-04-06 14:58:55 +01:00
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
cl349@firebug.cl.cam.ac.uk 7cded01029 g/c unused xcs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-09-07 19:01:05 +00:00
cl349@firebug.cl.cam.ac.uk 50f2601af9 bitkeeper revision 1.1533 (429379beNzrMmx_MJCmvdmLhK3EMfw)
migrate.py, params.py, SrvDaemon.py, xend, Makefile:
  Remove xfrd now that save/restore doesn't use xfrd anymore.
console.py:
  Remove/disable debug output.
.del-check_twisted~f74b05eb88f208a1:
  Delete: tools/check/check_twisted
xend:
  Twisted is no longer used -- remove check whether it's installed or not.
.del-Makefile~474b093f3e64d016:
  Delete: tools/xfrd/Makefile
.del-xfrdClient.py~d1d33f981191dfa:
  Delete: tools/xfrd/xfrdClient.py
.del-xfrd.h~54f8ea6e77cf4f26:
  Delete: tools/xfrd/xfrd.h
.del-xfrd.c~e3be851c3a4297a5:
  Delete: tools/xfrd/xfrd.c
.del-xen_domain.h~4a0c609ff18c63a8:
  Delete: tools/xfrd/xen_domain.h
.del-xen_domain.c~cd85f330a909fbce:
  Delete: tools/xfrd/xen_domain.c
.del-select.h~348b2b069dd5748:
  Delete: tools/xfrd/select.h
.del-select.c~373282d5f920303d:
  Delete: tools/xfrd/select.c
.del-marshal.h~9929a72563171372:
  Delete: tools/xfrd/marshal.h
.del-marshal.c~3108fab658d2220:
  Delete: tools/xfrd/marshal.c
.del-lzi_stream.h~49308e7b16ba42e3:
  Delete: tools/xfrd/lzi_stream.h
.del-lzi_stream.c~e1870394f081f255:
  Delete: tools/xfrd/lzi_stream.c
.del-debug.h~c268d8f144e5e4da:
  Delete: tools/xfrd/debug.h
.del-connection.h~ac7cb6a42316a421:
  Delete: tools/xfrd/connection.h
.del-connection.c~c025e96fc5649424:
  Delete: tools/xfrd/connection.c
.del-Make.xfrd~5a18d2f63aad1d40:
  Delete: tools/xfrd/Make.xfrd
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2005-05-24 19:00:14 +00: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
iap10@labyrinth.cl.cam.ac.uk bce79d6f98 bitkeeper revision 1.1159.223.22 (41f2c983tNSS8-VlWIzF9A78zTQx-w)
Description: add force-reload option
Debian policy requires init scripts to implement force-reload.  So, alias
that to restart.

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
2005-01-22 21:45:39 +00:00
mwilli2@equilibrium.research 0182092bce bitkeeper revision 1.1159.168.6 (4199134cGy53S7HzqzuO4Ufm3c9ijw)
Wait for in the xend init script for Xend to really come
up.  Avoids races with other init scripts.
2004-11-15 20:36:28 +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
kaf24@freefall.cl.cam.ac.uk 90d122ec63 bitkeeper revision 1.1159.79.1 (414b5fab__RjPaRIcKFGQmiG7K6ggA)
SrvDaemon.py, xend:
  Xend daemonization fixes from Charles Coffing.
2004-09-17 22:05:31 +00:00
mwilli2@equilibrium.research c954ba063f bitkeeper revision 1.1159.76.5 (41486c245wZ_GkCuT3kyo8VTw2o6Mg)
Tweak start / stop priorities to do the right thing in conjunction
with the xendomains script.
2004-09-15 16:21:56 +00:00
mwilli2@equilibrium.research 701ea937cc bitkeeper revision 1.1159.76.4 (41486b81LlL7eGHBxdKlHNQ3D64MYA)
Restore xendomains script.
2004-09-15 16:19:13 +00:00
iap10@labyrinth.cl.cam.ac.uk bf6e099423 bitkeeper revision 1.1108.33.36 (410ec3d23YQIo1sHR3jYLaaZu51ykg)
trivial change to remove reliance on /etc/init.d/functions
2004-08-02 22:44:34 +00:00
iap10@labyrinth.cl.cam.ac.uk e95cf335c5 bitkeeper revision 1.1071.1.8 (40f54b05-CAEtk1-dmM8jup2OTvRpg)
trivial
2004-07-14 15:02:29 +00:00
iap10@labyrinth.cl.cam.ac.uk 0b5542b424 bitkeeper revision 1.1071.1.6 (40f4dc820j_moO3D2AEja33QFn9N7A)
Tiny fixes to allow gentoo distro to work in dom0.
2004-07-14 07:10:58 +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