Unable to start EAP 6.3 as a service on RHEL 7
Issue
- I am trying to set up jboss EAP 6.3 standalone as a service using the jboss-as-standalone.sh script that comes with it under jboss_home/bin/init.d, however, it fails to do this when I try to start the service.I copied the jboss-as.conf file from the same folder to /etc/jboss-as and added some config values like JBOSS_ARGS, JBOSS_HOME, and JAVA_HOME.Then I copied the jboss-as-standalone.sh file to /etc/init.d, and added the $JBOSS_ARGS as a start up argument.I also added the script as a service by "sudo chkconfig --add jboss-as-standalone.sh". When I try to start the service by "sudo service jboss-as-standalone.sh start" I get the following error :
Starting jboss-as-standalone.sh (via systemctl): Failed to start jboss-as-standalone.sh.service: Unit jboss-as-standalone.sh.service failed to load: No such file or directory
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- Red Hat Enterprise Linux (RHEL)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.