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/xenstored.initd

30 lines
843 B

#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd,v 1.4 2013/05/15 08:40:29 idella4 Exp $
depend() {
before xendomains xend sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp
}
start() {
! [ -x /run/xen ] && mkdir -p /run/xen
ebegin "Starting xenstored daemon"
start-stop-daemon --start --exec /usr/sbin/xenstored \
--pidfile /var/run/xenstored.pid \
-- --pid-file=/var/run/xenstored.pid \
$XENSTORED_OPTS
sleep 15
einfo "Setting domain0 name record"
/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0"
eend $*
}
stop() {
ebegin "Stopping xenstored daemon"
start-stop-daemon --stop --exec /usr/sbin/xenstored \
--pidfile /var/run/xenstored.pid
eend $?
}