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