summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2010-12-12 15:54:00 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2010-12-12 15:54:00 +0000
commit62eeeec85daba9d5ec1efb26ab6e6296d5afec7c (patch)
tree13df1c9ddaa741984e9f8a6270154db405b6c283 /www-servers/resin
parentNeeds gnome-panel with bonobo support (with Jeremy Olexa permission, bug #348... (diff)
downloadgentoo-2-62eeeec85daba9d5ec1efb26ab6e6296d5afec7c.tar.gz
gentoo-2-62eeeec85daba9d5ec1efb26ab6e6296d5afec7c.tar.bz2
gentoo-2-62eeeec85daba9d5ec1efb26ab6e6296d5afec7c.zip
Provide correct init.d script.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/resin')
-rw-r--r--www-servers/resin/ChangeLog6
-rw-r--r--www-servers/resin/files/4.0.13/resin.conf12
-rw-r--r--www-servers/resin/files/4.0.13/resin.init37
3 files changed, 54 insertions, 1 deletions
diff --git a/www-servers/resin/ChangeLog b/www-servers/resin/ChangeLog
index 7e2db3f33552..d3737d1ed4de 100644
--- a/www-servers/resin/ChangeLog
+++ b/www-servers/resin/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-servers/resin
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/ChangeLog,v 1.100 2010/12/12 14:04:02 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/resin/ChangeLog,v 1.101 2010/12/12 15:54:00 nelchael Exp $
+
+ 12 Dec 2010; Krzysztof Pawlik <nelchael@gentoo.org> +files/4.0.13/resin.conf,
+ +files/4.0.13/resin.init:
+ Provide correct init.d script.
*resin-4.0.13 (12 Dec 2010)
diff --git a/www-servers/resin/files/4.0.13/resin.conf b/www-servers/resin/files/4.0.13/resin.conf
new file mode 100644
index 000000000000..b205f671a22d
--- /dev/null
+++ b/www-servers/resin/files/4.0.13/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/4.0.13/resin.init b/www-servers/resin/files/4.0.13/resin.init
new file mode 100644
index 000000000000..106367785453
--- /dev/null
+++ b/www-servers/resin/files/4.0.13/resin.init
@@ -0,0 +1,37 @@
+#!/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.13/resin.init,v 1.1 2010/12/12 15:54:00 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"
+}