Spent about 4hrs debugging a init.d script wondering why in **** /etc/init.d/jboss start exit:s with return code 1 and does nothing but "sh /etc/init.d/jboss start" works like a charm ...
wait for it ...
.
.
.
.
.
the script starts with "#!/bin/sh -e" the "-e" tells sh not to accept any commands to fail. witch is a good thing but it is really tricky if you forgot that you turned on "must not fail" .-)