summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2009-01-10 15:12:33 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2009-01-10 15:12:33 +0000
commit1254eb3f33901951e6bca6eec6dea84e8e21184e (patch)
tree43fa787751b2a6f32cb5cdb04925dfae594fa69d /www-servers/resin
parentamd64/x86 stable, bug #253054 (diff)
downloadgentoo-2-1254eb3f33901951e6bca6eec6dea84e8e21184e.tar.gz
gentoo-2-1254eb3f33901951e6bca6eec6dea84e8e21184e.tar.bz2
gentoo-2-1254eb3f33901951e6bca6eec6dea84e8e21184e.zip
Version bump.
Diffstat (limited to 'www-servers/resin')
-rw-r--r--www-servers/resin/files/3.1.8/resin.conf12
-rw-r--r--www-servers/resin/files/3.1.8/resin.init43
2 files changed, 55 insertions, 0 deletions
diff --git a/www-servers/resin/files/3.1.8/resin.conf b/www-servers/resin/files/3.1.8/resin.conf
new file mode 100644
index 000000000000..b205f671a22d
--- /dev/null
+++ b/www-servers/resin/files/3.1.8/resin.conf
@@ -0,0 +1,12 @@
+# JVM Runtime
+# Using the default setting, it will determine your JVM from the system-vm
+# set using java-config.
+# See java-config(1) manual page for assistance in determining this value.
+
+# You can override this value with whatever JDK you want.
+# For a list of valid values for GENTOO_VM see output of
+# java-config -L
+#GENTOO_VM=sun-jdk-1.5
+
+# Verbose starting and stopping? (yes/no, defaults to no)
+#VERBOSE="yes"
diff --git a/www-servers/resin/files/3.1.8/resin.init b/www-servers/resin/files/3.1.8/resin.init
new file mode 100644
index 000000000000..d03e2ebf7d48
--- /dev/null
+++ b/www-servers/resin/files/3.1.8/resin.init
@@ -0,0 +1,43 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+depend() {
+ need net
+ use dns logger mysql postgresql
+}
+
+runResin() {
+
+ JAVA_HOME=$(java-config -O)
+ [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O)
+ export JAVA_HOME
+
+ local extraArgs=
+ if [ "${VERBOSE}" = "yes" ]; then
+ extraArgs="-verbose"
+ fi
+
+ local msg="${1}"
+ shift
+
+ 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} ${@}"
+
+ ebegin "${msg}"
+ su - resin -c "${cmdline}"
+ eend $?
+
+}
+
+start() {
+
+ runResin "Starting Resin" "start"
+
+}
+
+stop() {
+
+ runResin "Stopping Resin" "stop"
+
+}