What do you mean "doesn't necessarily reflect the correct init-script name"?
Here it is: Code:
# ls -l /etc/rc*d/*jboss* |
Quote:
Quote:
You mention 2 jboss instances are installed are you sure one isn't frustrating the other during boot? Not sure what else to tell you which can solve this...... |
I am sure the other Jboss not frustrates the other during boot, since I've tried disable the other by means of "chkconfig jboss7 off". This means the other Jboss (jboss7) will not restart during reboot.
No problem, I will check it further. |
to aid diagnostics, you could add
set -x exec 2&>1 >> /path/to/somelog just below shebang in init-script, along with /opt/jboss/current/bin/run.sh ( based on druuna's link ) also probably need to remove > /dev/null 2> /dev/null |
Hi Firerat,
Here i smy init-script. Could you teld me where should I add the code you mentioned? Code:
#!/bin/sh |
actually, exec won't work with sh, AND I had typo with teh redirection
Code:
#!/bin/sh It will tell you 1/ if the script started, 2/ where it stopped |
just re-looking at this
I notice Jboss7 starts just before Jboss5 In Jboss5, start is executing JBOSS_HOME/bin/run.sh in background Is Jboss7 executing the same script? ( are they the same user "jboss" ? ) what does $JBOSS_HOME/bin/run.sh do? chances are they are both running at the same time, which may go some way to explaining why "on boot" jboss5 fails, but works 'manually' later |
Quote:
Code:
++ basename /etc/rc3.d/S81jboss Code:
... After I replaced this line to Code:
... |
Quote:
S81jboss is the symlink in the rc*.d/ directories $0 is returning the path to the command that invoked the shell ( I didn't explain that very well ) Anyhow , sorted no need for those 'loglines' now |
All times are GMT -5. The time now is 07:18 PM. |