How can I run JBoss EAP 6.x/7.x as systemd service and execute through systemctl command?

Solution Verified - Updated -

Issue

  • Is there a proper systemd service unit available for running JBoss EAP 7 Standalone server as a systemd service?
  • It is possible to use the default EAP 6 init scripts with systemctl?
  • Multiple JBoss EAP instances do not start with systemctl scripts.
  • Do you have a supported upstart script for JBoss EAP? for RHE 7 and would like to use the new package?
  • If we kill one of the servers (kill -9 PID) that is managed by a slave host controller, does the host controller restart the server? I don't see it restarting - does it have an option to configure restart? Does the slave host controller or process controller restart itself if it goes down?
  • I've set the /etc/jboss/jboss-as.conf below, but the startup timeout is approximately 150 seconds:

    STARTUP_WAIT=1800
    SHUTDOWN_WAIT=1800
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
  • Red Hat Enterprise Linux (RHEL)
    • 7.x
    • 8.x
    • 9.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content