mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
SrvDaemon.py, xend: Xend daemonization fixes from Charles Coffing.
32 lines
510 B
Bash
Executable File
32 lines
510 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 98 01
|
|
# description: Starts and stops the Xen control daemon.
|
|
|
|
case "$1" in
|
|
start)
|
|
xend start
|
|
;;
|
|
stop)
|
|
xend stop
|
|
;;
|
|
status)
|
|
xend status
|
|
;;
|
|
restart|reload)
|
|
xend restart
|
|
;;
|
|
*)
|
|
# 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 $?
|
|
|