Gentoo Archives: gentoo-commits

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