What value did you try setting them to? Did you remember to export the variables?
Yes I did. I tried
I tried jre path too.But still the same :-(
Hmm, that looks fine.
Try changing the first line of rhq-server.sh to:
Then try running it again. That will tell the shell to echo each line in the script as it executes it and might shed some light on why it's failing.
That was a great idea Ian. Thanks. I could check that It didn't recognize my environment variables even if I put them into /etc/profile or /home/myhome/.bashrc or /home/myhome/.bash_profile.
Anyway, I put them into the rhq-server.sh and it alredy recognize them. But i got a new error talking about one process.
+ check_status starting
+ '[' -f /home/myhome/jon-server-2.3.1.GA/bin/rhq-server.pid ']'
++ cat /home/myhome/jon-server-2.3.1.GA/bin/rhq-server.pid
+ '[' -n 6520 ']'
+ kill -0 6520
+ _SERVER_STATUS='RHQ Server (pid 6520) is NOT running'
+ '[' -f /home/myhome/jon-server-2.3.1.GA/bin/rhq-jvm.pid ']'
++ cat /home/myhome/jon-server-2.3.1.GA/bin/rhq-jvm.pid
+ '[' -n 6530 ']'
+ kill -0 6530
+ _JVM_STATUS='JBossAS Java VM child process (pid 6530) is NOT running'
+ echo 'RHQ Server (pid 6520) is NOT running'
RHQ Server (pid 6520) is NOT running
+ '[' 0 = 1 ']'
+ echo 'Failed to start - make sure the RHQ Server is fully configured properly'
Failed to start - make sure the RHQ Server is fully configured properly
+ exit 1