From: | "Krzysztof Pawlik (nelchael)" <nelchael@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-servers/resin/files/4.0.5: resin.init resin.conf |
Date: | Fri, 02 Apr 2010 15:41:28 |
Message-Id: | E1Nxizv-0006DT-5c@stork.gentoo.org |
1 | nelchael 10/04/02 15:41:27 |
2 | |
3 | Added: resin.init resin.conf |
4 | Log: |
5 | Version bump. |
6 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 www-servers/resin/files/4.0.5/resin.init |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/resin/files/4.0.5/resin.init?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/resin/files/4.0.5/resin.init?rev=1.1&content-type=text/plain |
13 | |
14 | Index: resin.init |
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/resin/files/4.0.5/resin.init,v 1.1 2010/04/02 15:41:27 nelchael Exp $ |
20 | |
21 | depend() { |
22 | need net |
23 | use dns logger mysql postgresql |
24 | } |
25 | |
26 | runResin() { |
27 | |
28 | JAVA_HOME=$(java-config -O) |
29 | [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O) |
30 | export JAVA_HOME |
31 | |
32 | local extraArgs= |
33 | if [ "${VERBOSE}" = "yes" ]; then |
34 | extraArgs="-verbose" |
35 | fi |
36 | |
37 | local msg="${1}" |
38 | shift |
39 | |
40 | local cmdline="${JAVA_HOME}/bin/java -jar /usr/share/resin/lib/resin.jar -conf /etc/resin/resin.xml -resin-home __RESIN_HOME__ -root-directory __RESIN_HOME__ ${extraArgs} ${@}" |
41 | |
42 | ebegin "${msg}" |
43 | su - resin -c "${cmdline}" |
44 | eend $? |
45 | |
46 | } |
47 | |
48 | start() { |
49 | |
50 | runResin "Starting Resin" "start" |
51 | |
52 | } |
53 | |
54 | stop() { |
55 | |
56 | runResin "Stopping Resin" "stop" |
57 | |
58 | } |
59 | |
60 | |
61 | |
62 | 1.1 www-servers/resin/files/4.0.5/resin.conf |
63 | |
64 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/resin/files/4.0.5/resin.conf?rev=1.1&view=markup |
65 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/resin/files/4.0.5/resin.conf?rev=1.1&content-type=text/plain |
66 | |
67 | Index: resin.conf |
68 | =================================================================== |
69 | # JVM Runtime |
70 | # Using the default setting, it will determine your JVM from the system-vm |
71 | # set using java-config. |
72 | # See java-config(1) manual page for assistance in determining this value. |
73 | |
74 | # You can override this value with whatever JDK you want. |
75 | # For a list of valid values for GENTOO_VM see output of |
76 | # java-config -L |
77 | #GENTOO_VM=sun-jdk-1.5 |
78 | |
79 | # Verbose starting and stopping? (yes/no, defaults to no) |
80 | #VERBOSE="yes" |