Sha256: 9c80f3534b64c22c7b6573f543e07bdcf7cf74667ac0d1a5edd6dcad0db01bd1

Contents?: true

Size: 995 Bytes

Versions: 142

Compression:

Stored size: 995 Bytes

Contents

#!/bin/bash
### BEGIN INIT INFO
# Provides:          xend
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: XEN control daemon
# Description:       XEN control daemon
### END INIT INFO

if ! grep -q "control_d" /proc/xen/capabilities ; then
	exit 0
fi

# Wait for Xend to be up
function await_daemons_up
{
	i=1
	rets=10
	xend status
	while [ $? -ne 0 -a $i -lt $rets ]; do
	    sleep 1
	    echo -n .
	    i=$(($i + 1))
	    xend status
	done
}

case "$1" in
  start)
	xend start
	await_daemons_up
	;;
  stop)
	/etc/init.d/xendomains stop # make sure domains are shut down
	xend stop
	;;
  status)
	xend status
	;;
  reload)
        xend reload
        ;;
  restart|force-reload)
	xend restart
	await_daemons_up
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 1
esac

exit $?

Version data entries

142 entries across 142 versions & 4 rubygems

Version Path
le1t0-deprec-2.1.6.038 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.037 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.036 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.035 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.034 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.033 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.032 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.031 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.030 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.029 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.028 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.027 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.026 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.025 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.024 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.023 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.022 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.021 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.020 lib/deprec/templates/xen/xend-init.erb
le1t0-deprec-2.1.6.019 lib/deprec/templates/xen/xend-init.erb