From b96c98f2e00f4e8a0590858c5470c931f7ed1abd Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Mon, 10 Aug 2015 17:24:46 -0400 Subject: [PATCH] www-servers/monkeyd: fix init script for 1.6.0. Package-Manager: portage-2.2.20 --- www-servers/monkeyd/files/monkeyd.initd-r1 | 24 +++++++++++++++++++ ...d-1.6.0.ebuild => monkeyd-1.6.0-r1.ebuild} | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 www-servers/monkeyd/files/monkeyd.initd-r1 rename www-servers/monkeyd/{monkeyd-1.6.0.ebuild => monkeyd-1.6.0-r1.ebuild} (98%) diff --git a/www-servers/monkeyd/files/monkeyd.initd-r1 b/www-servers/monkeyd/files/monkeyd.initd-r1 new file mode 100644 index 000000000000..d1fb73038baf --- /dev/null +++ b/www-servers/monkeyd/files/monkeyd.initd-r1 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DAEMON="/usr/sbin/monkey" +CONFFILE="/etc/monkeyd/monkey.conf" + +depend() { + use net +} + +start() { + ebegin "Starting monkeyd" + start-stop-daemon --start --exec "${DAEMON}" -- "-D" "${MONKEY_ARGS}" >/dev/null + eend $? +} + +stop() { + ebegin "Stopping monkeyd" + local PIDFILE=$(awk '/^ *PidFile/ { print $2 }' "${CONFFILE}") + start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" + eend $? +} diff --git a/www-servers/monkeyd/monkeyd-1.6.0.ebuild b/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild similarity index 98% rename from www-servers/monkeyd/monkeyd-1.6.0.ebuild rename to www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild index 73972b8165fa..4dc33775d480 100644 --- a/www-servers/monkeyd/monkeyd-1.6.0.ebuild +++ b/www-servers/monkeyd/monkeyd-1.6.0-r1.ebuild @@ -108,7 +108,7 @@ src_compile() { src_install() { default - newinitd "${FILESDIR}"/monkeyd.initd monkeyd + newinitd "${FILESDIR}"/monkeyd.initd-r1 monkeyd newconfd "${FILESDIR}"/monkeyd.confd monkeyd #move htdocs to docdir, bug #429632 -- 2.26.2