diff options
author | Brandon Low <lostlogic@gentoo.org> | 2004-01-05 23:22:43 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@gentoo.org> | 2004-01-05 23:22:43 +0000 |
commit | bf3eb50018a18117e1688eddf2316fd51f5f0647 (patch) | |
tree | eef36bd52054cc84254d139aa703c5b12096f91a /dev-java/openjms-bin/files | |
parent | Make bin dir executable, and add a startup script (diff) | |
download | historical-bf3eb50018a18117e1688eddf2316fd51f5f0647.tar.gz historical-bf3eb50018a18117e1688eddf2316fd51f5f0647.tar.bz2 historical-bf3eb50018a18117e1688eddf2316fd51f5f0647.zip |
Make bin dir executable, and add a startup script
Diffstat (limited to 'dev-java/openjms-bin/files')
-rw-r--r-- | dev-java/openjms-bin/files/conf | 1 | ||||
-rw-r--r-- | dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1 | 1 | ||||
-rw-r--r-- | dev-java/openjms-bin/files/rc | 35 |
3 files changed, 37 insertions, 0 deletions
diff --git a/dev-java/openjms-bin/files/conf b/dev-java/openjms-bin/files/conf new file mode 100644 index 000000000000..eed0adf5cf25 --- /dev/null +++ b/dev-java/openjms-bin/files/conf @@ -0,0 +1 @@ +JMSDIR=/opt/openjms-0.7.5/ diff --git a/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1 b/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1 new file mode 100644 index 000000000000..3b88a4333b78 --- /dev/null +++ b/dev-java/openjms-bin/files/digest-openjms-bin-0.7.5-r1 @@ -0,0 +1 @@ +MD5 7d78003bdb3935e47ab34cd9f291498a openjms-0.7.5.tgz 7970936 diff --git a/dev-java/openjms-bin/files/rc b/dev-java/openjms-bin/files/rc new file mode 100644 index 000000000000..a608be2bf053 --- /dev/null +++ b/dev-java/openjms-bin/files/rc @@ -0,0 +1,35 @@ +#!/sbin/runscript +#This was heavily copied from the generic-init.d script which comes with the +#binary version of firebird-ss + +depend() { + need net +} + +check_config() { + [ -n "${JMSDIR}" ] || return 1 +} + +# See how we were called. +start() { + check_config || return 1 + ebegin "Starting JMS server" + cd ${JMSDIR}/bin + ./startjms.sh > /var/log/openjms.log 2>&1 & + sleep 5 + if ps ax|grep '[o]rg\.exolab\.jms\.server\.JmsServer' > /dev/null; then + eend 0 + else + eend 1 + fi +} +stop() { + check_config || return 1 + ebegin "Stopping JMS server" + cd ${JMSDIR}/bin + if ./shutdown.sh 2>&1 |grep '[Ff]ailed' > /dev/null; then + eend 1 + else + eend 0 + fi +} |