diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2008-06-10 21:02:09 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2008-06-10 21:02:09 +0000 |
commit | 02ebcfec64400a81c2160088cd606e177ea0425f (patch) | |
tree | 34232119eefa10bca3da08e011a200c848e8526e /www-servers/resin/files | |
parent | Version bump. (diff) | |
download | historical-02ebcfec64400a81c2160088cd606e177ea0425f.tar.gz historical-02ebcfec64400a81c2160088cd606e177ea0425f.tar.bz2 historical-02ebcfec64400a81c2160088cd606e177ea0425f.zip |
Version bump.
Package-Manager: portage-2.1.5.4
Diffstat (limited to 'www-servers/resin/files')
-rw-r--r-- | www-servers/resin/files/3.0.26/resin.conf | 27 | ||||
-rw-r--r-- | www-servers/resin/files/3.0.26/resin.init | 27 |
2 files changed, 54 insertions, 0 deletions
diff --git a/www-servers/resin/files/3.0.26/resin.conf b/www-servers/resin/files/3.0.26/resin.conf new file mode 100644 index 000000000000..eea8ef6cda50 --- /dev/null +++ b/www-servers/resin/files/3.0.26/resin.conf @@ -0,0 +1,27 @@ +# 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 1.5 you want. +# For a list of valid values for GENTOO_VM see output of +# java-config -L +#GENTOO_VM=sun-jdk-1.5 + +# (Optional) Java runtime options. +# WARNING! Prepend each option with -J, so -Xmx512m should be -J-Xmx512m +# JAVA_OPTS="" + +# Where your Resin is installed +RESIN_HOME=__RESIN_HOME__ + +# Resin Log Locations +RESIN_OUT=/var/log/resin/resin_out.log +RESIN_ERR=/var/log/resin/resin_err.log + +# The CLASSPATH for Resin to use, plus any others you need. +CLASSPATH=$(java-config -dp resin) + +# START/STOP settings +RESIN_START="start" +RESIN_STOP="stop" diff --git a/www-servers/resin/files/3.0.26/resin.init b/www-servers/resin/files/3.0.26/resin.init new file mode 100644 index 000000000000..176a8d33373f --- /dev/null +++ b/www-servers/resin/files/3.0.26/resin.init @@ -0,0 +1,27 @@ +#!/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.0.26/resin.init,v 1.1 2008/06/10 21:02:09 nelchael Exp $ + +depend() { + need net + use dns logger mysql postgresql +} + +start() { + JAVA_HOME=$(java-config -O) + [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O) + export JAVA_HOME + ebegin "Starting Resin" + su - resin -c "${RESIN_HOME}/bin/httpd.sh ${JAVA_OPTS} -pid-dir /var/run/resin/ -java_home ${JAVA_HOME} -resin_home ${RESIN_HOME} -cp ${CLASSPATH} -stdout ${RESIN_OUT} -stderr ${RESIN_ERR} ${RESIN_START}" + eend $? +} + +stop() { + JAVA_HOME=$(java-config -O) + [ -n "${GENTOO_VM}" ] && JAVA_HOME=$(java-config --select-vm="${GENTOO_VM}" -O) + export JAVA_HOME + ebegin "Stopping Resin" + su - resin -c "${RESIN_HOME}/bin/httpd.sh ${JAVA_OPTS} -pid-dir /var/run/resin/ ${RESIN_STOP}" + eend $? +} |