Which exact version do you use? And is it EAP or the community edidtion?
With the community edition you might set RUN_CONF=/path/to/yourRun.conf and this will be used instead of bin/run.conf
Its EAP version and there in run.sh, setting for RUN_CONF is already there. Actually, thing is I have gone though a setup where they were loading custom run.conf file from custom location and I have tried a lot for finding the setting without any luck.
So, with your option we can specify our custom RUN_CONF setting,but in that case we need separate run.sh script for every instance. In our case they are using same run.sh to start multiple instances on same Server.
You don't need separete run.sh scripts.
You might run
RUN_CONF=/jboss/myconfig/run.conf.server1 bin/run.sh ....
But with EAP there is a option to place specific run.conf files to server/<your profile>/run.conf .
If you don't set the environment then this file will be used instead of bin/run.conf.
Yes, In EAP we have option to place new run.conf in <profile>. But, I was just checking to see if we can load from different location.
So, finally we have only one option i.e. pass RUN_CONF parameter while calling start up script(run.sh) instead of creating different run.sh for every instance and doing hard coding.
Thanks a lot for your all help and time !!
Another option is to create a script for each server like this:
RUN_CONF=<your file> run.sh -b x.x.x.x ........
So you have all together and ensure that there is no typo if you start the server
Yes, Going to follow same !!