Files
xen/tools/hotplug/Linux/init.d/xendomains.in
T
Olaf Hering d30c14b1f1 tools/hotplug: use XEN_SCRIPT_DIR instead of hardcoded path
Helper scripts get installed into XEN_SCRIPT_DIR, but initscripts,
helper scripts and udev rules still refer to the hardcoded location
/etc/xen/scripts/. Update scripts, rules and Makefile to refer to
@XEN_SCRIPT_DIR@ instead.

Update configure.ac to substitute the path in files using
XEN_SCRIPT_DIR. Remove XEN_SCRIPT_DIR from StdGNU.mk and SunOS.mk, its
already in Paths.mk.

Note: In SunOS.mk it refered to PRIVATE_PREFIX, which was introduced by
9f6d07bac9 ("tools: get rid of hardcoded
config dirs").

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
[ ijc -- ran autogen.sh as requested ]
2014-10-06 15:51:55 +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
. @XEN_SCRIPT_DIR@/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 $?