public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in www-servers/resin/files/4.0.9: resin.conf resin.init
@ 2010-08-19 19:31 Krzysztof Pawlik (nelchael)
  0 siblings, 0 replies; only message in thread
From: Krzysztof Pawlik (nelchael) @ 2010-08-19 19:31 UTC (permalink / raw
  To: gentoo-commits

nelchael    10/08/19 19:31:25

  Added:                resin.conf resin.init
  Log:
  Version bump.
  (Portage version: 2.1.8.3/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  www-servers/resin/files/4.0.9/resin.conf

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/resin/files/4.0.9/resin.conf?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/resin/files/4.0.9/resin.conf?rev=1.1&content-type=text/plain

Index: resin.conf
===================================================================
# 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"



1.1                  www-servers/resin/files/4.0.9/resin.init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/resin/files/4.0.9/resin.init?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/resin/files/4.0.9/resin.init?rev=1.1&content-type=text/plain

Index: resin.init
===================================================================
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/files/4.0.9/resin.init,v 1.1 2010/08/19 19:31:25 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 -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"
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-19 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-19 19:31 [gentoo-commits] gentoo-x86 commit in www-servers/resin/files/4.0.9: resin.conf resin.init Krzysztof Pawlik (nelchael)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox