mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Fixed wrong path in xendomains init that make it not working, introduced
in commit d8bad9df25 (tools/xendomains:
move to libexec and use a smaller init helper).
Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
#!/bin/bash
|
|
#
|
|
# /etc/init.d/xendomains
|
|
# Wrapper to start / stop domains automatically when domain 0 boots / shuts down
|
|
#
|
|
# chkconfig: 345 99 00
|
|
# description: Helper to start / stop Xen domains.
|
|
#
|
|
# This script is a wrapper init helper for the real workload horse script.
|
|
# It should work on LSB-compliant systems.
|
|
#
|
|
### BEGIN INIT INFO
|
|
# Provides: xendomains
|
|
# Required-Start: $syslog $remote_fs xenstored xenconsoled
|
|
# Should-Start: xend
|
|
# Required-Stop: $syslog $remote_fs xenstored xenconsoled
|
|
# Should-Stop: xend
|
|
# Default-Start: 2 3 5
|
|
# Default-Stop: 0 1 6
|
|
# Short-Description: Wrapper to start/stop secondary xen domains
|
|
# Description: Wrapper for starting / stopping domains automatically
|
|
# when domain 0 boots / shuts down on systems using init.
|
|
# The $LIBEXEC/xendomains helper is shared between init and
|
|
# systemd systems.
|
|
### END INIT INFO
|
|
|
|
. /etc/xen/scripts/hotplugpath.sh
|
|
|
|
case "$1" in
|
|
start)
|
|
$LIBEXEC/xendomains start
|
|
;;
|
|
stop)
|
|
$LIBEXEC/xendomains stop
|
|
;;
|
|
restart)
|
|
$LIBEXEC/xendomains restart
|
|
;;
|
|
reload)
|
|
$LIBEXEC/xendomains reload
|
|
;;
|
|
status)
|
|
$LIBEXEC/xendomains status
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|reload|status}"
|
|
exit 3
|
|
;;
|
|
esac
|
|
exit $?
|