app-emulation/xen-tools: add openrc init for xen-watchdog
authorTomas Mozes <tmozes@sygic.com>
Mon, 16 Oct 2017 12:32:44 +0000 (14:32 +0200)
committerYixun Lan <dlan@gentoo.org>
Tue, 17 Oct 2017 07:24:31 +0000 (15:24 +0800)
Closes: https://github.com/gentoo/gentoo/pull/5962
Signed-off-by: Yixun Lan <dlan@gentoo.org>
app-emulation/xen-tools/files/xen-watchdog.initd [new file with mode: 0644]
app-emulation/xen-tools/xen-tools-4.8.2-r2.ebuild

diff --git a/app-emulation/xen-tools/files/xen-watchdog.initd b/app-emulation/xen-tools/files/xen-watchdog.initd
new file mode 100644 (file)
index 0000000..6fbc54d
--- /dev/null
@@ -0,0 +1,6 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/xenwatchdogd"
+command_args="30 15"
index 1aac5f357a39aa5de9415257c1c5839b039af4a4..3de1759592f90eb7cce01a78e4250f9441859959 100644 (file)
@@ -421,6 +421,7 @@ src_install() {
        newconfd "${FILESDIR}"/xencommons.confd xencommons
        newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
        newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
+       newinitd "${FILESDIR}"/xen-watchdog.initd xen-watchdog
 
        if use screen; then
                cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die