diff options
Diffstat (limited to 'www-servers/resin/files/3.0.21/resin.init')
-rw-r--r-- | www-servers/resin/files/3.0.21/resin.init | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www-servers/resin/files/3.0.21/resin.init b/www-servers/resin/files/3.0.21/resin.init new file mode 100644 index 000000000000..2d0c5b3aff13 --- /dev/null +++ b/www-servers/resin/files/3.0.21/resin.init @@ -0,0 +1,21 @@ +#!/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.21/resin.init,v 1.1 2006/08/14 21:19:05 nelchael Exp $ + +depend() { + need net + use dns logger mysql postgresql +} + +start() { + 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() { + ebegin "Stopping Resin" + su - resin -c "${RESIN_HOME}/bin/httpd.sh ${JAVA_OPTS} -pid-dir /var/run/resin/ ${RESIN_STOP}" + eend $? +} |