Files
xen/tools/hotplug/Linux/init.d/xendomains
T
Fabio Fantoni dea878490c tools/hotplug/Linux/init.d: fix wrong path in xendomains init
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>
2014-08-21 23:32:43 +01:00

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 $?