diff options
Diffstat (limited to 'net-www/resin-ee/files/2.1.9/resin.init')
-rw-r--r-- | net-www/resin-ee/files/2.1.9/resin.init | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-www/resin-ee/files/2.1.9/resin.init b/net-www/resin-ee/files/2.1.9/resin.init new file mode 100644 index 000000000000..a4aeaa79f976 --- /dev/null +++ b/net-www/resin-ee/files/2.1.9/resin.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-www/resin-ee/files/2.1.9/resin.init,v 1.1 2003/04/30 13:56:44 absinthe Exp $ + +depend() { + need net + use dns logger mysql postgresql +} + +start() { + ebegin "Starting Resin Enterprise" + cd ${RESIN_HOME} + su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_START}" + eend $? +} + +stop () { + ebegin "Stopping Resin Enterprise" + su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_STOP}" + sleep 2 + eend $? +} + +svc_restart () { + ebegin "Restarting Resin Enterprise" + su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_STOP}" + sleep 5 + cd ${RESIN_HOME} + su - ${RESIN_USER} -c "/opt/resin/bin/httpd.sh ${RESIN_START}" + eend $? +} |