Gentoo Archives: gentoo-commits

From: "Jose Alberto Suarez Lopez (bass)" <bass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/cherokee/files: cherokee-initd-0.11
Date: Fri, 26 Dec 2008 09:04:47
Message-Id: E1LG8cd-0004sr-Rn@stork.gentoo.org
1 bass 08/12/26 09:04:43
2
3 Added: cherokee-initd-0.11
4 Log:
5 version bump
6 (Portage version: 2.1.4.5)
7
8 Revision Changes Path
9 1.1 www-servers/cherokee/files/cherokee-initd-0.11
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/cherokee/files/cherokee-initd-0.11?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/cherokee/files/cherokee-initd-0.11?rev=1.1&content-type=text/plain
13
14 Index: cherokee-initd-0.11
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 1999-2004 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/www-servers/cherokee/files/cherokee-initd-0.11,v 1.1 2008/12/26 09:04:43 bass Exp $
20
21 PIDFILE=/var/run/cherokee.pid
22
23 opt="reload"
24
25 depend() {
26 need net
27 }
28
29 start() {
30 ebegin "Starting Cherokee Web Server"
31 start-stop-daemon --start -b --pidfile ${PIDFILE} \
32 --exec /usr/sbin/cherokee
33 eend $?
34 }
35
36 stop() {
37 ebegin "Stopping Cherokee Web Server"
38 start-stop-daemon --stop --pidfile ${PIDFILE} \
39 --exec /usr/sbin/cherokee
40 eend $?
41 }
42
43 reload() {
44 ebegin "Restarting Cherokee Web Server and closing all open connections"
45 start-stop-daemon --stop --pidfile ${PIDFILE} \
46 --signal USR1
47 eend $?
48 }