diff options
author | Dylan Carlson <absinthe@gentoo.org> | 2003-04-30 13:56:48 +0000 |
---|---|---|
committer | Dylan Carlson <absinthe@gentoo.org> | 2003-04-30 13:56:48 +0000 |
commit | 60b92f53c3bd4a42cd138b92a799354bea1ba2aa (patch) | |
tree | 460702a8b2d2c1f239692bebaa74e0d1542f4545 /net-www/resin-ee/files/2.1.9/resin.init | |
parent | Initial import. (diff) | |
download | gentoo-2-60b92f53c3bd4a42cd138b92a799354bea1ba2aa.tar.gz gentoo-2-60b92f53c3bd4a42cd138b92a799354bea1ba2aa.tar.bz2 gentoo-2-60b92f53c3bd4a42cd138b92a799354bea1ba2aa.zip |
Initial import.
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 $? +} |