diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-03-04 11:22:24 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-03-04 11:22:24 +0000 |
commit | c85724355c60b0b0a8e59d072a42803685260dc6 (patch) | |
tree | f84b8a18168f69163e6e024e321ea6f11d661810 /www-servers/resin/files | |
parent | Version bump. (diff) | |
download | gentoo-2-c85724355c60b0b0a8e59d072a42803685260dc6.tar.gz gentoo-2-c85724355c60b0b0a8e59d072a42803685260dc6.tar.bz2 gentoo-2-c85724355c60b0b0a8e59d072a42803685260dc6.zip |
Version bump.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/resin/files')
-rw-r--r-- | www-servers/resin/files/4.0.26/resin.conf | 16 | ||||
-rw-r--r-- | www-servers/resin/files/4.0.26/resin.init | 37 |
2 files changed, 53 insertions, 0 deletions
diff --git a/www-servers/resin/files/4.0.26/resin.conf b/www-servers/resin/files/4.0.26/resin.conf new file mode 100644 index 000000000000..a48840b5e9f2 --- /dev/null +++ b/www-servers/resin/files/4.0.26/resin.conf @@ -0,0 +1,16 @@ +# 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" + +# Select which server will be started, this is an advanced feature, please refer +# to Resin documentation. +SERVER_ID="" diff --git a/www-servers/resin/files/4.0.26/resin.init b/www-servers/resin/files/4.0.26/resin.init new file mode 100644 index 000000000000..60902eb97f77 --- /dev/null +++ b/www-servers/resin/files/4.0.26/resin.init @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +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.xml -server \"${SERVER_ID}\" -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" "shutdown" +} |