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