aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/init.d
Commit message (Collapse)AuthorAgeFilesLines
* tools/hotplug: Separate OS-specific scripts.Keir Fraser2008-11-043-734/+0
| | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xendomains script: A few bug fixes.Keir Fraser2008-09-111-2/+4
| | | | | Contributed-by: Artur Linhart <AL.LINUX@bcpraha.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xendomains: Better sanity checking of potetntial save records.kfraser@localhost.localdomain2007-07-031-13/+16
| | | | Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
* xendomains: Ignore 'lost+found' when finding saved dom images.Keir Fraser2007-07-011-2/+4
| | | | Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
* tools: Allow xendomains to handle domain names >16 characterskfraser@localhost.localdomain2007-06-191-12/+21
| | | | | | | | | | The xendomains init script parses the output of "xm list", and since xm list restricts the length of domains to 16 characters the xendomain script cannot handle long domain names. This patch makesit parse the output of "xm list -l" instead. Signed-off-by: Mark McLoughlin <markmc@redhat.com>
* Add INIT INFO block to example init.d/xend file.kfraser@localhost.localdomain2007-04-271-0/+12
| | | | | | Without it SuSE (and others?) will start xend before the network. Signed-off-by: Robert Valentan <R.Valentan@solid-soft.at>
* Fix init.d/xendomains startup script so log_error and log_successkfraser@localhost.localdomain2007-02-281-12/+19
| | | | | | | will also work on redhat-based distributions before RHEL 5. See discussion "xendomains init script" about a year ago on xen-devel. Signed-off-by: Florian Kirstein <ray@ray.net>
* This patch checks the contents of XENDOMAINS_SAVE before the restoreEwan Mellor2006-12-071-1/+8
| | | | | | | | process begins, and prevents xendomains from attempting to start any domain that appears there, whether the domain started successfully or not. Signed off by: Hugh Brock <hbrock@redhat.com>
* Added rudimentary "xend reload" functionality. This allows you to reconfigureEwan Mellor2006-12-041-1/+4
| | | | | | the services offered by Xend, without restarting the daemon itself. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [TOOLS] Fix xendomains init.d script DOG PIG confusion.Alastair Tse2006-09-291-3/+3
| | | | | | | Fix typos in xendomains where we actually mean WDOG_PID. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=754 Signed-off-by: Alastair Tse <atse@xensource.com>
* Fix the example xend init.d script so it correctly detects when it is runningapeace@paploo.uk.xensource.com2006-04-061-1/+1
| | | | | | | | in a guest. Signed-off by: Andrew Peace <andrew@xensource.com>
* Added mkdir -p $XENDOMAINS_SAVE, to ensure that the directory exists beforeemellor@leeni.uk.xensource.com2005-12-141-0/+1
| | | | | | | trying to save into it. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Use xm create's --dryrun option to get the name from the configuration file,emellor@leeni.uk.xensource.com2005-12-071-1/+3
| | | | | | | | 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>
* Fix usleep definition -- we would be sleeping 1000 times too long if the usleepemellor@leeni.uk.xensource.com2005-12-072-1/+14
| | | | | | | | | | | | 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>
* Fix the check for non-existence of the save/restore directories, by using &&emellor@leeni.uk.xensource.com2005-10-261-11/+41
| | | | | | | | | | | | | | 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>
* New xendomains init script, courtesy of Kurt Garloff:emellor@leeni.uk.xensource.com2005-10-262-77/+499
| | | | | | | | | | | | | | | | | 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>
* g/c unused xcs.cl349@firebug.cl.cam.ac.uk2005-09-071-1/+1
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1533 (429379beNzrMmx_MJCmvdmLhK3EMfw)cl349@firebug.cl.cam.ac.uk2005-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* bitkeeper revision 1.1236.1.95 (423d90c7SBXNlShGVmT7ksTwZFp-Bw)iap10@firebug.cl.cam.ac.uk2005-03-201-0/+12
| | | | | | | LSM INIT INFO block added to xendomains From: Kurt Garloff Signed-off-by: ian@xensource.com
* bitkeeper revision 1.1159.270.2 (42330a929cE0pKehTkalVAgu8SLwKQ)doogie@brainfood.com[kaf24]2005-03-122-0/+8
| | | | | | | | | | | | [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>
* bitkeeper revision 1.1159.223.22 (41f2c983tNSS8-VlWIzF9A78zTQx-w)iap10@labyrinth.cl.cam.ac.uk2005-01-221-2/+2
| | | | | | | | | | | 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
* bitkeeper revision 1.1159.168.6 (4199134cGy53S7HzqzuO4Ufm3c9ijw)mwilli2@equilibrium.research2004-11-151-0/+16
| | | | | | Wait for in the xend init script for Xend to really come up. Avoids races with other init scripts.
* bitkeeper revision 1.1159.122.1 (4177c41conAxvsSnGCUYzYBlBVfqCQ)cl349@freefall.cl.cam.ac.uk2004-10-211-4/+12
| | | | | Fix init.d/xendomains.
* bitkeeper revision 1.1159.79.1 (414b5fab__RjPaRIcKFGQmiG7K6ggA)kaf24@freefall.cl.cam.ac.uk2004-09-171-3/+3
| | | | | | SrvDaemon.py, xend: Xend daemonization fixes from Charles Coffing.
* bitkeeper revision 1.1159.76.5 (41486c245wZ_GkCuT3kyo8VTw2o6Mg)mwilli2@equilibrium.research2004-09-151-1/+1
| | | | | | Tweak start / stop priorities to do the right thing in conjunction with the xendomains script.
* bitkeeper revision 1.1159.76.4 (41486b81LlL7eGHBxdKlHNQ3D64MYA)mwilli2@equilibrium.research2004-09-151-0/+146
| | | | | Restore xendomains script.
* bitkeeper revision 1.1108.33.36 (410ec3d23YQIo1sHR3jYLaaZu51ykg)iap10@labyrinth.cl.cam.ac.uk2004-08-021-2/+0
| | | | | trivial change to remove reliance on /etc/init.d/functions
* bitkeeper revision 1.1071.1.8 (40f54b05-CAEtk1-dmM8jup2OTvRpg)iap10@labyrinth.cl.cam.ac.uk2004-07-141-1/+1
| | | | | trivial
* bitkeeper revision 1.1071.1.6 (40f4dc820j_moO3D2AEja33QFn9N7A)iap10@labyrinth.cl.cam.ac.uk2004-07-141-1/+1
| | | | | Tiny fixes to allow gentoo distro to work in dom0.
* bitkeeper revision 1.1040 (40e2a907DdoQGsSPReiCr496bEgtTQ)kaf24@scramble.cl.cam.ac.uk2004-06-301-146/+0
| | | | | Remove obsolete files.
* bitkeeper revision 1.1010.1.2 (40daf234LK7ohaP4f1QHGPJq0t3yZw)mjw@wray-m-3.hpl.hp.com2004-06-241-30/+16
| | | | | | Change configs to live in /etc/xen, other stuff in /var/xen. Update xendomains to use xm.
* bitkeeper revision 1.819 (405ff597IZG6ZJZ_KUXF4rm3sEo57A)kaf24@scramble.cl.cam.ac.uk2004-03-232-0/+193
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