powered by Jive Software

Here''s a neat one.... Wildfire startup outside of /opt/wildfire/bin

Ok, so I use the command for wildfire. wildfire start andthings are funny looking. I can usually tell that something is amiss when the appended to nohup.out line appears on the return command interpreter line in bash. so I stop and as IT2000 told me , run as sh -x wildfire start… this is outside of the /opt/wildfire/bin dir and I receive this info (this is universal on this system, 2.6.2 and 3.0.0 both return the same info:

/usr/local> sh -x wildfire start

  • INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx1500m

++ pwd

  • old_pwd=/usr/local

++ basename wildfire

  • progname=wildfire

++ dirname wildfire

  • linkdir=.

  • cd .

  • prg=wildfire

  • ‘’[’’ -h wildfire ‘’]’’

++ dirname wildfire

  • prg_dir=.

  • cd .

++ pwd

  • prg_dir=/usr/local

  • app_home=…/

  • cd …/

++ pwd

  • app_home=/usr

  • bundled_jre_home=/usr/jre

  • cd /usr/local/.

  • ‘’[’’ -f /usr/jre/lib/rt.jar.pack ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm

  • tested_jvm=na

  • test_dir=

  • bin_dir=/bin

  • java_exc=/bin/java

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • ‘’[’’ -f /usr/.install4j/pref_jre.cfg ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm /usr/jre

  • tested_jvm=na

  • test_dir=/usr/jre

  • bin_dir=/usr/jre/bin

  • java_exc=/usr/jre/bin/java

  • ‘’[’’ -z /usr/jre ‘’]’’

  • ‘’[’’ ‘’!’’ -d /usr/jre/bin ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • ‘’[’’ na = false ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

++ which java

  • path_java=

++ expr ‘’’’ : ‘’(.*)/bin/java$’’

  • path_java_home=

  • test_jvm

  • tested_jvm=na

  • test_dir=

  • bin_dir=/bin

  • java_exc=/bin/java

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • common_jvm_locations=/opt/i4j_jres/* /usr/local/i4j_jres/* /usr/bin/java* /usr/bin/jdk* /usr/bin/jre* /usr/bin/j2re /usr/bin/j2sdk* /usr/java* /usr/jdk* /usr/jre* /usr/j2re /usr/j2sdk* /usr/java/j2re /usr/java/j2sdk* /usr/java/jdk* /usr/java/jre* /usr/lib/java/jre /usr/local/java* /usr/local/jdk* /usr/local/jre* /usr/local/j2re /usr/local/j2sdk* /usr/lib/java* /usr/lib/jdk* /usr/lib/jre* /usr/lib/j2re /usr/lib/j2sdk*

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/opt/i4j_jres/*’’

  • tested_jvm=na

  • test_dir=/opt/i4j_jres/*

  • bin_dir=/opt/i4j_jres/*/bin

  • java_exc=/opt/i4j_jres/*/bin/java

  • ‘’[’’ -z ‘’/opt/i4j_jres/*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/opt/i4j_jres/*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/local/i4j_jres/*’’

  • tested_jvm=na

  • test_dir=/usr/local/i4j_jres/*

  • bin_dir=/usr/local/i4j_jres/*/bin

  • java_exc=/usr/local/i4j_jres/*/bin/java

  • ‘’[’’ -z ‘’/usr/local/i4j_jres/*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/local/i4j_jres/*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/bin/java*’’

  • tested_jvm=na

  • test_dir=/usr/bin/java*

  • bin_dir=/usr/bin/java*/bin

  • java_exc=/usr/bin/java*/bin/java

  • ‘’[’’ -z ‘’/usr/bin/java*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/bin/java*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/bin/jdk*’’

  • tested_jvm=na

  • test_dir=/usr/bin/jdk*

  • bin_dir=/usr/bin/jdk*/bin

  • java_exc=/usr/bin/jdk*/bin/java

  • ‘’[’’ -z ‘’/usr/bin/jdk*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/bin/jdk*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/bin/jre*’’

  • tested_jvm=na

  • test_dir=/usr/bin/jre*

  • bin_dir=/usr/bin/jre*/bin

  • java_exc=/usr/bin/jre*/bin/java

  • ‘’[’’ -z ‘’/usr/bin/jre*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/bin/jre*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/bin/j2re’’

  • tested_jvm=na

  • test_dir=/usr/bin/j2re

  • bin_dir=/usr/bin/j2re/bin

  • java_exc=/usr/bin/j2re/bin/java

  • ‘’[’’ -z ‘’/usr/bin/j2re’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/bin/j2re/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/bin/j2sdk*’’

  • tested_jvm=na

  • test_dir=/usr/bin/j2sdk*

  • bin_dir=/usr/bin/j2sdk*/bin

  • java_exc=/usr/bin/j2sdk*/bin/java

  • ‘’[’’ -z ‘’/usr/bin/j2sdk*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/bin/j2sdk*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm /usr/java

  • tested_jvm=na

  • test_dir=/usr/java

  • bin_dir=/usr/java/bin

  • java_exc=/usr/java/bin/java

  • ‘’[’’ -z /usr/java ‘’]’’

  • ‘’[’’ ‘’!’’ -d /usr/java/bin ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/jdk*’’

  • tested_jvm=na

  • test_dir=/usr/jdk*

  • bin_dir=/usr/jdk*/bin

  • java_exc=/usr/jdk*/bin/java

  • ‘’[’’ -z ‘’/usr/jdk*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/jdk*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/jre*’’

  • tested_jvm=na

  • test_dir=/usr/jre*

  • bin_dir=/usr/jre*/bin

  • java_exc=/usr/jre*/bin/java

  • ‘’[’’ -z ‘’/usr/jre*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/jre*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/j2re’’

  • tested_jvm=na

  • test_dir=/usr/j2re

  • bin_dir=/usr/j2re/bin

  • java_exc=/usr/j2re/bin/java

  • ‘’[’’ -z ‘’/usr/j2re’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/j2re/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/j2sdk*’’

  • tested_jvm=na

  • test_dir=/usr/j2sdk*

  • bin_dir=/usr/j2sdk*/bin

  • java_exc=/usr/j2sdk*/bin/java

  • ‘’[’’ -z ‘’/usr/j2sdk*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/j2sdk*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/java/j2re’’

  • tested_jvm=na

  • test_dir=/usr/java/j2re

  • bin_dir=/usr/java/j2re/bin

  • java_exc=/usr/java/j2re/bin/java

  • ‘’[’’ -z ‘’/usr/java/j2re’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/java/j2re/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm ‘’/usr/java/j2sdk*’’

  • tested_jvm=na

  • test_dir=/usr/java/j2sdk*

  • bin_dir=/usr/java/j2sdk*/bin

  • java_exc=/usr/java/j2sdk*/bin/java

  • ‘’[’’ -z ‘’/usr/java/j2sdk*’’ ‘’]’’

  • ‘’[’’ ‘’!’’ -d ‘’/usr/java/j2sdk*/bin’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm /usr/java/jdk1.5.0_06

  • tested_jvm=na

  • test_dir=/usr/java/jdk1.5.0_06

  • bin_dir=/usr/java/jdk1.5.0_06/bin

  • java_exc=/usr/java/jdk1.5.0_06/bin/java

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ ‘’!’’ -d /usr/java/jdk1.5.0_06/bin ‘’]’’

  • ‘’[’’ ‘’!’’ -f /usr/java/jdk1.5.0_06/bin/java ‘’]’’

  • ‘’[’’ ‘’!’’ -x /usr/java/jdk1.5.0_06/bin/java ‘’]’’

  • tested_jvm=false

  • read_db_entry

  • ‘’[’’ -n ‘’’’ ‘’]’’

  • db_file=/home/wildfire/.install4j

  • ‘’[’’ ‘’!’’ -f /home/wildfire/.install4j ‘’]’’

  • ‘’[’’ ‘’!’’ -x /usr/java/jdk1.5.0_06/bin/java ‘’]’’

  • found=1

  • exec

  • read r_type r_dir r_ver_major r_ver_minor r_ver_micro r_ver_patch

  • ‘’[’’ JRE_VERSION = JRE_VERSION ‘’]’’

  • ‘’[’’ /opt/wildfire/jre = /usr/java/jdk1.5.0_06 ‘’]’’

  • read r_type r_dir r_ver_major r_ver_minor r_ver_micro r_ver_patch

  • ‘’[’’ JRE_VERSION = JRE_VERSION ‘’]’’

  • ‘’[’’ /usr/java/jdk1.5.0_06 = /usr/java/jdk1.5.0_06 ‘’]’’

  • ver_major=1

  • ver_minor=5

  • ver_micro=0

  • ver_patch=06

  • found=0

  • break

  • exec

  • return 0

  • ‘’[’’ 1 = ‘’’’ ‘’]’’

  • ‘’[’’ 1 -lt 1 ‘’]’’

  • ‘’[’’ 1 -eq 1 ‘’]’’

  • ‘’[’’ 5 -lt 5 ‘’]’’

  • ‘’[’’ 1 = ‘’’’ ‘’]’’

  • app_java_home=/usr/java/jdk1.5.0_06

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • ‘’[’’ -z /usr/java/jdk1.5.0_06 ‘’]’’

  • vmoptions_val=

  • vmoptions_file=/usr/local/wildfire.vmoptions

  • ‘’[’’ -r /usr/local/wildfire.vmoptions ‘’]’’

  • INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx1500m

  • local_classpath=

  • add_class_path /usr/.install4j/i4jruntime.jar

  • ‘’[’’ -n /usr/.install4j/i4jruntime.jar ‘’]’’

++ expr /usr/.install4j/i4jruntime.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/usr/.install4j/i4jruntime.jar

  • ‘’[’’ ‘’!’’ -d /usr/lib ‘’]’’

++ ls /usr/lib

++ egrep ‘’.(jar$|zip$)’’

  • echo ‘‘Starting wildfire’’

  • exit 0

me@myserver:/usr/local> + nohup /usr/java/jdk1.5.0_06/bin/java -server -Dinstall4j.jvmDir=/usr/java/jdk1.5.0_06 -Dinstall4j.appDir=/usr -Dexe4j.moduleName=/usr/local/wildfire -Xms512m -Xmx1500m -classpath /usr/.install4j/i4jruntime.jar com.install4j.runtime.Launcher start org.jivesoftware.wildfire.starter.ServerStarter false false /usr/local/…/logs/stderror.log /usr/local/…/logs/stdoutt.log true true false ‘’’’ true true 0 0 ‘’’’ 20 20 Arial 0,0,0 8 500 ‘‘version 2.6.2’’ 20 40 Arial 0,0,0 8 500 -1 -DwildfireHome=/usr -Dwildfire.lib.dir=/usr/lib start

Now this tells me that it is defaulting to the system installed java and not java included with wildfire. HOWEVER, if I run the very same command in the /opt/wildfire/bin dir then I get this:

/opt/wildfire/bin> sh -x wildfire start

  • INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx1500m

++ pwd

  • old_pwd=/opt/wildfire/bin

++ basename wildfire

  • progname=wildfire

++ dirname wildfire

  • linkdir=.

  • cd .

  • prg=wildfire

  • ‘’[’’ -h wildfire ‘’]’’

++ dirname wildfire

  • prg_dir=.

  • cd .

++ pwd

  • prg_dir=/opt/wildfire/bin

  • app_home=…/

  • cd …/

++ pwd

  • app_home=/opt/wildfire

  • bundled_jre_home=/opt/wildfire/jre

  • cd /opt/wildfire/bin/.

  • ‘’[’’ -f /opt/wildfire/jre/lib/rt.jar.pack ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm

  • tested_jvm=na

  • test_dir=

  • bin_dir=/bin

  • java_exc=/bin/java

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • return

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • ‘’[’’ -f /opt/wildfire/.install4j/pref_jre.cfg ‘’]’’

  • ‘’[’’ -z ‘’’’ ‘’]’’

  • test_jvm /opt/wildfire/jre

  • tested_jvm=na

  • test_dir=/opt/wildfire/jre

  • bin_dir=/opt/wildfire/jre/bin

  • java_exc=/opt/wildfire/jre/bin/java

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ ‘’!’’ -d /opt/wildfire/jre/bin ‘’]’’

  • ‘’[’’ ‘’!’’ -f /opt/wildfire/jre/bin/java ‘’]’’

  • ‘’[’’ ‘’!’’ -x /opt/wildfire/jre/bin/java ‘’]’’

  • tested_jvm=false

  • read_db_entry

  • ‘’[’’ -n ‘’’’ ‘’]’’

  • db_file=/home/wildfire/.install4j

  • ‘’[’’ ‘’!’’ -f /home/wildfire/.install4j ‘’]’’

  • ‘’[’’ ‘’!’’ -x /opt/wildfire/jre/bin/java ‘’]’’

  • found=1

  • exec

  • read r_type r_dir r_ver_major r_ver_minor r_ver_micro r_ver_patch

  • ‘’[’’ JRE_VERSION = JRE_VERSION ‘’]’’

  • ‘’[’’ /opt/wildfire/jre = /opt/wildfire/jre ‘’]’’

  • ver_major=1

  • ver_minor=5

  • ver_micro=0

  • ver_patch=06

  • found=0

  • break

  • exec

  • return 0

  • ‘’[’’ 1 = ‘’’’ ‘’]’’

  • ‘’[’’ 1 -lt 1 ‘’]’’

  • ‘’[’’ 1 -eq 1 ‘’]’’

  • ‘’[’’ 5 -lt 5 ‘’]’’

  • ‘’[’’ 1 = ‘’’’ ‘’]’’

  • app_java_home=/opt/wildfire/jre

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • ‘’[’’ -z /opt/wildfire/jre ‘’]’’

  • vmoptions_val=

  • vmoptions_file=/opt/wildfire/bin/wildfire.vmoptions

  • ‘’[’’ -r /opt/wildfire/bin/wildfire.vmoptions ‘’]’’

  • INSTALL4J_ADD_VM_PARAMS=-Xms512m -Xmx1500m

  • local_classpath=

  • add_class_path /opt/wildfire/.install4j/i4jruntime.jar

  • ‘’[’’ -n /opt/wildfire/.install4j/i4jruntime.jar ‘’]’’

++ expr /opt/wildfire/.install4j/i4jruntime.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar

  • ‘’[’’ ‘’!’’ -d /opt/wildfire/lib ‘’]’’

++ ls /opt/wildfire/lib

++ egrep ‘’.(jar$|zip$)’’

  • add_class_path /opt/wildfire/lib/activation.jar

  • ‘’[’’ -n /opt/wildfire/lib/activation.jar ‘’]’’

++ expr /opt/wildfire/lib/activation.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar

  • add_class_path /opt/wildfire/lib/bouncycastle.jar

  • ‘’[’’ -n /opt/wildfire/lib/bouncycastle.jar ‘’]’’

++ expr /opt/wildfire/lib/bouncycastle.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar

  • add_class_path /opt/wildfire/lib/commons-el.jar

  • ‘’[’’ -n /opt/wildfire/lib/commons-el.jar ‘’]’’

++ expr /opt/wildfire/lib/commons-el.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar

  • add_class_path /opt/wildfire/lib/hsqldb.jar

  • ‘’[’’ -n /opt/wildfire/lib/hsqldb.jar ‘’]’’

++ expr /opt/wildfire/lib/hsqldb.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar

  • add_class_path /opt/wildfire/lib/hsqldbutil.jar

  • ‘’[’’ -n /opt/wildfire/lib/hsqldbutil.jar ‘’]’’

++ expr /opt/wildfire/lib/hsqldbutil.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar

  • add_class_path /opt/wildfire/lib/jasper-compiler.jar

  • ‘’[’’ -n /opt/wildfire/lib/jasper-compiler.jar ‘’]’’

++ expr /opt/wildfire/lib/jasper-compiler.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar

  • add_class_path /opt/wildfire/lib/jasper-runtime.jar

  • ‘’[’’ -n /opt/wildfire/lib/jasper-runtime.jar ‘’]’’

++ expr /opt/wildfire/lib/jasper-runtime.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar

  • add_class_path /opt/wildfire/lib/jdic.jar

  • ‘’[’’ -n /opt/wildfire/lib/jdic.jar ‘’]’’

++ expr /opt/wildfire/lib/jdic.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r

  • add_class_path /opt/wildfire/lib/jtds.jar

  • ‘’[’’ -n /opt/wildfire/lib/jtds.jar ‘’]’’

++ expr /opt/wildfire/lib/jtds.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar

  • add_class_path /opt/wildfire/lib/mail.jar

  • ‘’[’’ -n /opt/wildfire/lib/mail.jar ‘’]’’

++ expr /opt/wildfire/lib/mail.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar

  • add_class_path /opt/wildfire/lib/mysql.jar

  • ‘’[’’ -n /opt/wildfire/lib/mysql.jar ‘’]’’

++ expr /opt/wildfire/lib/mysql.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar

  • add_class_path /opt/wildfire/lib/postgres.jar

  • ‘’[’’ -n /opt/wildfire/lib/postgres.jar ‘’]’’

++ expr /opt/wildfire/lib/postgres.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar

  • add_class_path /opt/wildfire/lib/servlet.jar

  • ‘’[’’ -n /opt/wildfire/lib/servlet.jar ‘’]’’

++ expr /opt/wildfire/lib/servlet.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar:/opt/wildfire/lib/servlet.jar

  • add_class_path /opt/wildfire/lib/startup.jar

  • ‘’[’’ -n /opt/wildfire/lib/startup.jar ‘’]’’

++ expr /opt/wildfire/lib/startup.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar:/opt/wildfire/lib/servlet.jar:/opt/wildfire/l ib/startup.jar

  • add_class_path /opt/wildfire/lib/wildfire.jar

  • ‘’[’’ -n /opt/wildfire/lib/wildfire.jar ‘’]’’

++ expr /opt/wildfire/lib/wildfire.jar : ‘’.****’’

  • ‘’[’’ 0 -eq 0 ‘’]’’

  • local_classpath=/opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activ ation.jar:/opt/wildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/o pt/wildfire/lib/hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/ja sper-compiler.jar:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.ja r:/opt/wildfire/lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql. jar:/opt/wildfire/lib/postgres.jar:/opt/wildfire/lib/servlet.jar:/opt/wildfire/l ib/startup.jar:/opt/wildfire/lib/wildfire.jar

  • echo ‘‘Starting wildfire’’

Starting wildfire

  • exit 0

me@myserver:/opt/wildfire/bin> + nohup /opt/wildfire/jre/bin/java -server -Dinstall4j.jvmDir=/opt/wildfire/jre -Dinstall4j.appDir=/opt/wildfire -Dexe4j.moduleName=/opt/wildfire/bin/wildfire -Xms512m -Xmx1500m -classpath /opt/wildfire/.install4j/i4jruntime.jar:/opt/wildfire/lib/activation.jar:/opt/w ildfire/lib/bouncycastle.jar:/opt/wildfire/lib/commons-el.jar:/opt/wildfire/lib/ hsqldb.jar:/opt/wildfire/lib/hsqldbutil.jar:/opt/wildfire/lib/jasper-compiler.ja r:/opt/wildfire/lib/jasper-runtime.jar:/opt/wildfire/lib/jdic.jar:/opt/wildfire/ lib/jtds.jar:/opt/wildfire/lib/mail.jar:/opt/wildfire/lib/mysql.jar:/opt/wildfir e/lib/postgres.jar:/opt/wildfire/lib/servlet.jar:/opt/wildfire/lib/startup.jar:/ opt/wildfire/lib/wildfire.jar com.install4j.runtime.Launcher start org.jivesoftware.wildfire.starter.ServerStarter false false /opt/wildfire/bin/…/logs/stderror.log /opt/wildfire/bin/…/logs/stdoutt.log true true false ‘’’’ true true 0 0 ‘’’’ 20 20 Arial 0,0,0 8 500 ‘‘version 2.6.2’’ 20 40 Arial 0,0,0 8 500 -1 -DwildfireHome=/opt/wildfire -Dwildfire.lib.dir=/opt/wildfire/lib start

nohup: appending output to `nohup.out’’

and then a command interpreter again. and everything is happy and works… hmmmmm… ok, so yes I have both the JRE and JDK from SUN installed on the system, but shouldn’‘t Wildfire be looking in its installed dir for all of this? the version 2.6.2 reference is because I copied the wildfire executable before I dumped 3.0.0 alpha in over 2.6.2, but this shouldn’'t make a difference as it gave the same issues before I upgraded.

Jeff

Hi Jeff,

I wonder why you did add /opt/wildfire/bin to $PATH - it makes imho no sense and you are responsible for any errors this produces. Wildfire can not find the right path to look for it libs etc.

Your first start command should be

/usr/local> sh -x /opt/wildfire/bin/wildfire start

and then everything would be fine.

I didn’'t add wildfire to my path statement. The install does this when you run the configure, make, make install. I am not responsible for the error, the script that comes with the wildfire installation is. it does a pwd statement in the script and then uses this as the base to attempt to run. My first and ONLY command should be wildfire {start|stop} I should not have to path out the executable, especailly when the installation drops it into /usr/local/bin which in ANY linux installation is in all users path.

Jeff

Hi Jeff,

you did run a “configure && make install” ? I heard of users running rpm -Uvh while I did just run tar -xzf *z. There is a redhat-postinstall.sh script but it does not modify the PATH or copies anything to /usr/local/bin. And your wildfire script should be located in “/usr/local/wildfire/bin” or “/opt/wildfire/bin”.

LG

Actually, I ran rpm -ivh this time (sorry too many upgrades) this does dump a ln -s of /opt/wildfire/bin/wildfire into your /usr/local/bin directory…

My actual script is located in /opt/wildfire/bin…

Jeff

Oops Jeff,

I’'ll create an issue right now, without this symlink everything should run fine. So for 3.0 there should be no longer a symlink or the script detects better how it was called. It can be tracked with JM-699.

LG

Ok that works, however this will hurt functionality of starting the server won’‘t it? If I wanted to say create a script that launches postgres, then wildfire, then my msn gateway won’'t it fail? unless I launch the script from the bin/ dir in wildfire?

Jeff

Hi Jeff,

no, it won’‘t. In my opinion it is lazy to trust the PATH variable. It’'s much more secure to always use the full path (especially if you are using root). As long as you specify the full path to wildfire it should always run fine.

As Wildfire and Postgres are running as different users you may be root to start both. I prefer the /etc/rc.d/init.d/ scripts to start and stop everything while the scripts do a sudo if necessary. Using the /etc/rc3.d/SNNwildfired and /etc/rc3.d/SMMpostgres scripts you can make sure that NN is much higher than MM, so Wildfire will be launched after Postgres during boot.

LG

Nope not root. Dont run anything as root, dont even spell the word root correctly… I have two under-priviledged accounts one that can access the wildfire directory and msn directory, and one that can access the psql directory. Neither has rights in the other’‘s playground, and I like it that way. I do like the functionality of using PATH, as it allows for me to do things like create sh scripts to launch all of my stuff, or check ports 5222 and 5223 for connections to the IM server. (which is really an easy and neato way to get just the count on connections from the command interpreter.), or auto-ftp my .snapshot and db_dump files to another machine… init.d is a good place for startups , but what if you don’'t wanna start things up when you boot the box? I don;t want anything but the power supply running when this box comes up.