diff options
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 +} |