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-1.2.0 |
Date: | Tue, 22 Feb 2011 21:44:07 |
Message-Id: | 20110222214358.8E13A20057@flycatcher.gentoo.org |
1 | bass 11/02/22 21:43:58 |
2 | |
3 | Added: cherokee-initd-1.2.0 |
4 | Log: |
5 | new init script. thx #333925 |
6 | |
7 | (Portage version: 2.1.9.25/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 www-servers/cherokee/files/cherokee-initd-1.2.0 |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/files/cherokee-initd-1.2.0?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/cherokee/files/cherokee-initd-1.2.0?rev=1.1&content-type=text/plain |
14 | |
15 | Index: cherokee-initd-1.2.0 |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2011 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | |
21 | opts="gracefull reload" |
22 | |
23 | depend() { |
24 | need net |
25 | } |
26 | |
27 | start() { |
28 | ebegin "Starting Cherokee Web Server" |
29 | start-stop-daemon --start -b \ |
30 | --exec /usr/sbin/cherokee |
31 | eend $? |
32 | } |
33 | |
34 | stop() { |
35 | ebegin "Stopping Cherokee Web Server" |
36 | start-stop-daemon --stop \ |
37 | --exec /usr/sbin/cherokee |
38 | eend $? |
39 | } |
40 | |
41 | gracefull() { |
42 | ebegin "Gracefully restarting Cherokee Web Server" |
43 | start-stop-daemon \ |
44 | --exec /usr/sbin/cherokee \ |
45 | --signal HUP |
46 | eend $? |
47 | } |
48 | |
49 | reload() { |
50 | ebegin "Restarting Cherokee Web Server and closing all open connections" |
51 | start-stop-daemon \ |
52 | --exec /usr/sbin/cherokee \ |
53 | --signal USR1 |
54 | eend $? |
55 | } |