Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5003

Need to document usage of jboss_init_redhat.sh

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Medium
    • The script jboss_init_redhat.sh has been removed from distribution. Instead, use your own script to customize start-up of the Enterprise Platform.
    • Documented as Known Issue
    • ASSIGNED

      We need to document the usage of the JBoss Startup script that we ship.
      I'm going to see if we can get JBPAPP-2381 fixed so that step 1 below is not required.

      The EAP distribution is shipped with init scripts which can be used to run jboss as a service

      1. Add these lines to the top of the $JBOSS_HOME/bin/jboss_init_redhat.sh after the #/bin/bash [1]

      1. chkconfig: - 85 15
      2. description: The JBoss Application Server
      3. processname: jboss

      The - means to not start JBoss in any run level by default. To specify the runlevels it should be started in, specify the values with no spaces (2345 would be running in 2,3,4 and 5 runlevels). 85 is the start priority, and 15 is the stop priority.

      2. Symlink your edited jboss_init_redhat.sh file to /etc/init.d/. Example command:
      ln -s $JBOSS_HOME/bin/jboss_init_redhat.sh /etc/init.d/jboss_init_redhat.sh

      3. Register jboss_init_redhat.sh with the chkconfig system by entering the following command:
      /sbin/chkconfig --add jboss_init_redhat.sh

      4. Enable the jboss service at boot time and have it stop gracefully at shutdown/reboot by entering the following command:
      /sbin/chkconfig jboss_init_redhat.sh on

      5. To disable the jboss boot-time service enter the following command:
      /sbin/chkconfig jboss_init_redhat.sh off

      [1] https://jira.jboss.org/browse/JBPAPP-2381

          There are no Sub-Tasks for this issue.

              elspeth_jira Elspeth Thorne (Inactive)
              rhn-support-bmaxwell Brad Maxwell
              Elspeth Thorne Elspeth Thorne (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: