From: Anthony G. Basile Date: Mon, 10 Aug 2015 21:24:46 +0000 (-0400) Subject: www-servers/monkeyd: fix init script for 1.6.0. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b96c98f2e00f4e8a0590858c5470c931f7ed1abd;p=gentoo.git www-servers/monkeyd: fix init script for 1.6.0. Package-Manager: portage-2.2.20 --- 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