Commit b63c5e74 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Updated to allow for java6 to be an allowed dependency.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9746 b35dd754-fafc-0310-a699-88a17e54d16e
parent a67798f6
......@@ -8,7 +8,7 @@ Standards-Version: 3.7.2
Package: openfire
Section: net
Priority: optional
Depends: sun-java5-jre
Depends: sun-java5-jre | sun-java6-jre
Architecture: all
Description: A high performance XMPP (Jabber) server.
Openfire is an instant messaging server that implements the XMPP
......
......@@ -7,15 +7,21 @@
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
#
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
# Attempt to locate JAVA_HOME, code borrowed from jabref package
if [ -z $JAVA_HOME ]
then
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
fi
PATH=/sbin:/bin:/usr/sbin:/usr/bin:${JAVA_HOME}/bin
DAEMON=${JAVA_HOME}/bin/java
JAVA=${JAVA_HOME}/bin/java
NAME=openfire
DESC=openfire
DAEMON_DIR=/usr/share/openfire
DAEMON_LIB=${DAEMON_DIR}/lib
test -x $DAEMON || exit 0
test -x $JAVA || exit 0
# Include openfire defaults if available
if [ -f /etc/default/openfire ] ; then
......@@ -32,12 +38,12 @@ DAEMON_OPTS="-server -DopenfireHome=${DAEMON_DIR} \
start() {
start-stop-daemon --start --quiet --background --make-pidfile \
--pidfile /var/run/$NAME.pid --chuid openfire:openfire \
--exec $DAEMON -- $DAEMON_OPTS
--exec $JAVA -- $DAEMON_OPTS
}
stop() {
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON --retry 4
--exec $JAVA --retry 4
}
case "$1" in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment