You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/xen-tools/files/xenconsoled.initd

33 lines
797 B

#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenconsoled.initd,v 1.5 2014/01/23 03:38:35 dlan Exp $
depend() {
need xenstored
after lvm
}
# bug #498720
shutdown_all_domU() {
# Note: shutdown all domU, including manually started ones
xl shutdown -a -w >/dev/null
}
start() {
ebegin "Starting xenconsoled daemon"
start-stop-daemon --start --exec /usr/sbin/xenconsoled \
--pidfile /run/xenconsoled.pid \
-- --pid-file=/run/xenconsoled.pid \
${XENCONSOLED_OPTS}
eend $*
}
stop() {
ebegin "Stopping xenconsoled daemon"
shutdown_all_domU
start-stop-daemon --stop --exec /usr/sbin/xenconsoled \
--pidfile /run/xenconsoled.pid
eend $*
}