direct-io.hg

view tools/examples/init.d/xend @ 1782:f61925935170

bitkeeper revision 1.1071.1.8 (40f54b05-CAEtk1-dmM8jup2OTvRpg)

trivial
author iap10@labyrinth.cl.cam.ac.uk
date Wed Jul 14 15:02:29 2004 +0000 (2004-07-14)
parents ad09d919356e
children 8f75eee1c448
line source
1 #!/bin/bash
2 #
3 # xend Script to start and stop the Xen control daemon.
4 #
5 # Author: Keir Fraser <keir.fraser@cl.cam.ac.uk>
6 #
7 # chkconfig: 2345 99 00
8 # description: Starts and stops the Xen control daemon.
10 [ -f /etc/init.d/functions ] && . /etc/init.d/functions || . /etc/init.d/functions.sh
12 case "$1" in
13 start)
14 xend start
15 exit $?
16 ;;
17 stop)
18 xend stop
19 exit $?
20 ;;
21 status)
22 ;;
23 restart|reload)
24 ;;
25 *)
26 # do not advertise unreasonable commands that there is no reason
27 # to use with this device
28 echo $"Usage: $0 {start|stop|status|restart|reload}"
29 exit 1
30 esac
32 exit 0