-
1. Re: JBOSS does not start up on boot
erasmomarciano Jan 20, 2010 9:14 AM (in response to mathurpratik)I think that you forgot to specify the JBoss instance
example
./run.sh -c all -b 0.0.0.0
-
2. Re: JBOSS does not start up on boot
peterj Jan 20, 2010 10:55 AM (in response to mathurpratik)1 of 1 people found this helpfulLooking at the 'test' commands man page, it would appear that you need to place the expression within paranthesis:
$TEST (-x filename)
You might even need quotes:
$TEST "(-x filename)"
I don't have a Linux machine handy just now or I would give you a more definitive answer.
Anyway, the best way of debugging a script is to always enter each command in by hand, especially commands that fail.
-
3. Re: JBOSS does not start up on boot
peterj Jan 20, 2010 12:50 PM (in response to peterj)1 of 1 people found this helpfulOK, I have my Linux system. I tried a simple script based on what you had and the syntax:
$TEST -x $FILENAME || exit 0
worked just fine. I am using Ubuntu 9.04.
Perhaps try running:
test --help
Maybe 'test' is really not 'test'!
-
4. Re: JBOSS does not start up on boot
mathurpratik Jan 27, 2010 11:10 AM (in response to peterj)Peter,
You answers were definitly helpful. It appears the problem I was having was I needed to run dos2unix on this script. I'm not sure why, but I can get the script to run on boot now.
Thanks for your help.
-
5. Re: JBOSS does not start up on boot
peterj Jan 27, 2010 11:13 AM (in response to mathurpratik)"I needed to run dos2unix on this script"
Ah yes, Linux scripts will not run if they are in the DOS text format (lines ending with CR-LF), they think that the CR is part of the command which causes confusion.