From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 717F11396D9 for ; Fri, 13 Oct 2017 08:05:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FE412BC014; Fri, 13 Oct 2017 08:05:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 497BC2BC014 for ; Fri, 13 Oct 2017 08:05:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5BA9633BEDC for ; Fri, 13 Oct 2017 08:05:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F334E90A8 for ; Fri, 13 Oct 2017 08:05:48 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1507881868.53ff5de18863280ca005fdde6c0b924abac77fa3.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen-tools/, app-emulation/xen-tools/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/xen-tools/files/xenstored.initd-r1 app-emulation/xen-tools/xen-tools-4.8.2-r1.ebuild X-VCS-Directories: app-emulation/xen-tools/files/ app-emulation/xen-tools/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 53ff5de18863280ca005fdde6c0b924abac77fa3 X-VCS-Branch: master Date: Fri, 13 Oct 2017 08:05:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 84886d31-bee2-47c5-a1cf-ad729087e50e X-Archives-Hash: b769f551500407746e4615ed52e74188 commit: 53ff5de18863280ca005fdde6c0b924abac77fa3 Author: Tomas Mozes gmail com> AuthorDate: Thu Oct 12 08:07:40 2017 +0000 Commit: Yixun Lan gentoo org> CommitDate: Fri Oct 13 08:04:28 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53ff5de1 app-emulation/xen-tools: use xen-init-dom0 Gentoo-Bug: 634042 Package-Manager: Portage-2.3.11, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/5925 Signed-off-by: Yixun Lan gentoo.org> app-emulation/xen-tools/files/xenstored.initd-r1 | 42 +++++++++++++++++++++++ app-emulation/xen-tools/xen-tools-4.8.2-r1.ebuild | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/app-emulation/xen-tools/files/xenstored.initd-r1 b/app-emulation/xen-tools/files/xenstored.initd-r1 new file mode 100644 index 00000000000..262535d6809 --- /dev/null +++ b/app-emulation/xen-tools/files/xenstored.initd-r1 @@ -0,0 +1,42 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + before xendomains xend sshd ntp-client ntpd nfs nfsmount rsyncd portmap dhcp + need xencommons +} + +xenstored_dir_check() { + # create dir dynamically + local i + for i in /var/lock/subsys /run/xen /run/xend/boot /run/xenstored; do + [ -x $i ] || mkdir -p $i + done +} + +start() { + ebegin "Starting xenstored daemon" + xenstored_dir_check + start-stop-daemon --start --exec /usr/sbin/xenstored \ + --pidfile /run/xenstored.pid \ + -- --pid-file=/run/xenstored.pid \ + $XENSTORED_OPTS + until xenstore-exists / || $((15 < ++i)) + do + echo -n . + sleep 1 + done + einfo "Setting domain0 name record" + /usr/libexec/xen/bin/xen-init-dom0 + + eend $* +} + +stop() { + ebegin "Stopping xenstored daemon" + start-stop-daemon --stop --exec /usr/sbin/xenstored \ + --pidfile /run/xenstored.pid + eend $? +} + diff --git a/app-emulation/xen-tools/xen-tools-4.8.2-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.8.2-r1.ebuild index 2a5886ec70e..3e35cd4c8ea 100644 --- a/app-emulation/xen-tools/xen-tools-4.8.2-r1.ebuild +++ b/app-emulation/xen-tools/xen-tools-4.8.2-r1.ebuild @@ -418,7 +418,7 @@ src_install() { newconfd "${FILESDIR}"/xenstored.confd xenstored newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains - newinitd "${FILESDIR}"/xenstored.initd xenstored + newinitd "${FILESDIR}"/xenstored.initd-r1 xenstored newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled newinitd "${FILESDIR}"/xencommons.initd xencommons newconfd "${FILESDIR}"/xencommons.confd xencommons