1. Depending on how to run. Go to jboss installation folder and then <JBOSS_INSTALL>/bin/init.d.
2. You will find one file named jboss-as-standalone.sh. If you wanna just create service for jboss standalone. you can use this file.
3. If you wanna create service for jboss running in domain mode. Create copy of jboss-as-standalone.sh with the name of jboss-as-domain.sh.
4. Make changes in newly created jboss-as-domain.sh for point correct directories. Make sure you change.. standalone.sh to domain.sh.
5. copy file to init.d.. cp <JBOSS_INSTALL>/bin/init.d/jboss-as-XXXXX.sh /etc/init.d/jbossxxxxx
6. use chkconfig -add jbossxxxxx command to add jbossxxxxx as service.
7. now you can start jbossxxxxx as service. use service jbossxxxxx start...
8. sample copy of jboss-as-domain.sh attached here.
do you have the file?
ReplyDeleteYes.. its available with any JBOSS EAP installation. Let me know if you need this file
ReplyDelete