Jive Software Open Source

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Openfire (ARCHIVED)
  • JM-1076

Openfire daemon script for linux references non-existing file openfire.sh

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 3.3.1
  • Fix Version/s: 3.x
  • Component/s: Scripts
  • Labels:
    None
  • Acceptance Test - Add?:
    No

Description

In the extras directory, is a daemon script called openfired. In this file is a reference to openfire.sh This is incorrectly referenced as it should just be openfire.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Source
  • Reviews
  • Builds
Hide
Permalink
IGA14302 added a comment - 05/30/07 01:05 PM

even if we create a softlink to openfire script, the init script does not work
It does not start / stop the server
the status reporting is also not working (.pid and /var/run/ files)

Show
IGA14302 added a comment - 05/30/07 01:05 PM even if we create a softlink to openfire script, the init script does not work It does not start / stop the server the status reporting is also not working (.pid and /var/run/ files)
Hide
Permalink
Sam Soldatenko added a comment - 10/23/07 11:38 PM

The line of code in /etc/init.d/openfired where ./openfire.sh is referenced contains other TWO errors.

On my system "su" can't access /root/.bashrc file. Workaround: I added '-' option before - $OPENFIRE_USER
Then, on my system it was not able to access ./openfire script because "su" changes the current directory to /home/jive

Completely i've fixed it by:
1. Adding export JAVA_HOME=/opt/jdk1.5.0_13/ to /home/jive/.bashrc file
2. Change the body of execCommand()
function execCommand() {
OLD_PWD=`pwd`
cd $OPENFIRE_HOME/bin
CMD="./openfire $1"
su -c "cd $OPENFIRE_HOME/bin && $CMD" - $OPENFIRE_USER &
sleep 1 # allows prompt to return
cd $OLD_PWD
}

it looks a little awfull, can you fix it later, please.
Anyway. Thank you for EXCELLENT software!
-------
Configuration:

  1. which java
    /usr/bin/which: no java in .....
  2. uname -a
    Linux Tout 2.4.24 #4 Mon Jul 26 21:25:25 NOVST 2004 i586 unknown
  3. su -c "export | grep JAVA" - jive
    declare -x JAVA_HOME="/opt/jdk1.5.0_13/"
    CPU: 1 Intel Pentium 166 MMX
    RAM: 128Mb
Show
Sam Soldatenko added a comment - 10/23/07 11:38 PM The line of code in /etc/init.d/openfired where ./openfire.sh is referenced contains other TWO errors. On my system "su" can't access /root/.bashrc file. Workaround: I added '-' option before - $OPENFIRE_USER Then, on my system it was not able to access ./openfire script because "su" changes the current directory to /home/jive Completely i've fixed it by: 1. Adding export JAVA_HOME=/opt/jdk1.5.0_13/ to /home/jive/.bashrc file 2. Change the body of execCommand() function execCommand() { OLD_PWD=`pwd` cd $OPENFIRE_HOME/bin CMD="./openfire $1" su -c "cd $OPENFIRE_HOME/bin && $CMD" - $OPENFIRE_USER & sleep 1 # allows prompt to return cd $OLD_PWD } it looks a little awfull, can you fix it later, please. Anyway. Thank you for EXCELLENT software! ------- Configuration:
  1. which java /usr/bin/which: no java in .....
  2. uname -a Linux Tout 2.4.24 #4 Mon Jul 26 21:25:25 NOVST 2004 i586 unknown
  3. su -c "export | grep JAVA" - jive declare -x JAVA_HOME="/opt/jdk1.5.0_13/" CPU: 1 Intel Pentium 166 MMX RAM: 128Mb
Hide
Permalink
David Y. Hodge added a comment - 02/03/08 08:50 AM

the function execCommand() does not work as is and I simply modified it to do the following:

-------------
execCommand() {
bin/su $OPENFIRE_USER $OPENFIRE_HOME/bin/openfire
}
------------

It works and note that there is no .sh

Hope this helps.

Show
David Y. Hodge added a comment - 02/03/08 08:50 AM the function execCommand() does not work as is and I simply modified it to do the following: ------------- execCommand() { bin/su $OPENFIRE_USER $OPENFIRE_HOME/bin/openfire } ------------ It works and note that there is no .sh Hope this helps.
Hide
Permalink
Daryl Herzmann added a comment - 05/28/08 07:57 PM

Hi,

Could folks on this ticket please comment some more on if the current version of Openfire (3.5.1) still contains these issues?

thanks!
daryl

Show
Daryl Herzmann added a comment - 05/28/08 07:57 PM Hi, Could folks on this ticket please comment some more on if the current version of Openfire (3.5.1) still contains these issues? thanks! daryl
Hide
Permalink
Daryl Herzmann added a comment - 11/25/08 09:57 PM

Hi,

I am closing this issue as I believe it to be fixed. If anybody objects, please let me know.

daryl

Show
Daryl Herzmann added a comment - 11/25/08 09:57 PM Hi, I am closing this issue as I believe it to be fixed. If anybody objects, please let me know. daryl
Hide
Permalink
Richard Thomas added a comment - 10/11/10 07:41 AM

Openfire 3.6.4 still has this issue.

Lines 52 and 53 of bin/extra/openfired read:

cd $OPENFIRE_HOME/bin

CMD="./openfire.sh $1"

However, there is no such file. The file that does exist is:

OPENFIRE_HOME/bin/openfire

Changing line 54 of the openfired script to read the following resolves this issue:

CMD="./openfire $1"

Show
Richard Thomas added a comment - 10/11/10 07:41 AM Openfire 3.6.4 still has this issue. Lines 52 and 53 of bin/extra/openfired read:
cd $OPENFIRE_HOME/bin
CMD="./openfire.sh $1"
However, there is no such file. The file that does exist is:
OPENFIRE_HOME/bin/openfire
Changing line 54 of the openfired script to read the following resolves this issue:
CMD="./openfire $1"

People

  • Assignee:
    Gaston Dombiak
    Reporter:
    Kevin Williams
Vote (2)
Watch (3)

Dates

  • Created:
    05/30/07 12:51 AM
    Updated:
    10/11/10 07:41 AM
    Resolved:
    11/25/08 09:57 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for igniterealtime.org. Try JIRA - bug tracking software for your team.