Improve linux init script to work with Ubuntu 10.04

Description

from http://www.igniterealtime.org/community/message/203022

At Ubuntu 10.04 (Lucid lynx) there changes in java engine.. Openfire's initscript checks for /usr/lib/jvm/java-1.5.0-sun and 6.0 variant, but ubuntu uses /usr/lib/jvm/default-java..

So I made this type of modification in /etc/init.d/openfire to make openfire to work:

if [ -z $JAVA_HOME ]

then
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/default-java && test -d $t && JAVA_HOME=$t
fi

Environment

Ubuntu 10.04

Activity

Show:
Daryl Herzmann
December 19, 2016, 8:11 PM

Closing as incomplete as hopefully this is no longer an issue with current release and Ubuntu. We can reopen, if it is still a problem.

Daryl Herzmann
April 26, 2014, 10:22 PM

Anybody comment on any current issues with Ubuntu?

Sorin Ionuț Sbârnea
July 5, 2013, 5:16 PM
Edited

This bug is still having even if the newer version 3.8.2 improved the init.d script but not enough. Now it has a list of possible locations on Java (JAVA_HOMES) but the list is missing the default locaiton of Java 7: /usr/lib/jvm/java-7-oracle (the scripts contains /usr/lib/jvm/java-7-sun which is and old version not used anymore).

BTW, someone should correct the title, this can be reproduced on any Unix system not only Ubuntu 10.04.

Guus der Kinderen
February 6, 2013, 7:57 PM

Removing the 'fix version' for all unresolved issues that were scheduled for version 7.8.2. We're releasing this version today - the remaining issues should be rescheduled later.

LG
May 17, 2010, 11:20 PM

this may be openJDK and it seems that this can cause trouble: http://www.igniterealtime.org/community/thread/41802
So one may want to test openJDK first before supporting it. Maybe some com.sun. classes are missing.

Incomplete

Assignee

Unassigned

Reporter

wroot