Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/monkeyd/files: monkeyd.confd monkeyd.initd
Date: Thu, 07 Jun 2012 08:22:18
Message-Id: 20120607082206.208052004C@flycatcher.gentoo.org
1 blueness 12/06/07 08:22:06
2
3 Added: monkeyd.confd monkeyd.initd
4 Log:
5 Version bump, fix init script
6
7 (Portage version: 2.1.10.49/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 www-servers/monkeyd/files/monkeyd.confd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/files/monkeyd.confd?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/files/monkeyd.confd?rev=1.1&content-type=text/plain
14
15 Index: monkeyd.confd
16 ===================================================================
17 # Copyright 1999-2012 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/files/monkeyd.confd,v 1.1 2012/06/07 08:22:06 blueness Exp $
20
21 # Add any additional command line arguments here
22 MONKEY_ARGS=""
23
24
25
26 1.1 www-servers/monkeyd/files/monkeyd.initd
27
28 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/files/monkeyd.initd?rev=1.1&view=markup
29 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/monkeyd/files/monkeyd.initd?rev=1.1&content-type=text/plain
30
31 Index: monkeyd.initd
32 ===================================================================
33 #!/sbin/runscript
34 # Copyright 1999-2012 Gentoo Foundation
35 # Distributed under the terms of the GNU General Public License v2
36 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/files/monkeyd.initd,v 1.1 2012/06/07 08:22:06 blueness Exp $
37
38 DAEMON="/usr/bin/monkey"
39 CONFFILE="/etc/monkeyd/monkey.conf"
40
41 depend() {
42 use net
43 }
44
45 start() {
46 ebegin "Starting monkeyd"
47 start-stop-daemon --start --exec "${DAEMON}" -- "-D" "${MONKEY_ARGS}" >/dev/null
48 eend $?
49 }
50
51 stop() {
52 ebegin "Stopping monkeyd"
53 local PORT=$(awk '/^ *Port/ { print $2 }' "${CONFFILE}")
54 local PIDFILE=$(awk '/^ *PidFile/ { print $2 }' "${CONFFILE}")
55 PIDFILE="${PIDFILE}"."${PORT}"
56 start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
57 eend $?
58 }