Files
xen/tools/examples/init.d/xend
T

34 lines
587 B
Bash
Executable File

#!/bin/bash
#
# xend Script to start and stop the Xen control daemon.
#
# Author: Keir Fraser <keir.fraser@cl.cam.ac.uk>
#
# chkconfig: 2345 99 00
# description: Starts and stops the Xen control daemon.
[ -f /etc/init.d/functions ] && . /etc/init.d/functions || . /etc/init.d/functions.sh
case "$1" in
start)
xend start
exit $?
;;
stop)
xend stop
exit $?
;;
status)
;;
restart|reload)
;;
*)
# do not advertise unreasonable commands that there is no reason
# to use with this device
echo $"Usage: $0 {start|stop|status|restart|reload}"
exit 1
esac
exit 0