Details

    • Type: Patch Patch
    • Status: Open Open (View Workflow)
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3.0.GA, EAP 5.0.0
    • Fix Version/s: TBD EAP 5
    • Component/s: Scripts and Commands
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      Linux, RHEL5
    • Release Notes Docs Status:
      Not Required
    • Similar Issues:
      Show 7 results 

      Description

      I have tried to address the shortcomings of the current JBoss init script for RHEL5:

      • Uses PID file
      • Supports chkconfig
      • Supports start, stop, force-stop, reload, force-reload, status
      • Supports custom user and password on shutdown
      • Supports custom jndi host/port on shutdown
      • Does not allow second instance to start when one is already running
      • Does not rely on other files such as run.sh and run.conf
      • Verifies successful startup
      • The init script does not have to be edited, use the standard location for configuration (/etc/default/jboss) instead
      • Runs out of the box when no configuration is provided
      • Should support most Linuces

      All feedback is welcome – I'm sure I forgot something in the provided script.

      1. etc_default_jboss
        1 kB
        Henrik Aronsen
      2. etc_default_jboss
        1 kB
        Henrik Aronsen
      3. etc_init.d_jboss
        5 kB
        Henrik Aronsen
      4. etc_init.d_jboss
        5 kB
        Henrik Aronsen
      5. etc_init.d_jboss
        5 kB
        Henrik Aronsen
      6. etc_init.d_jboss
        5 kB
        Henrik Aronsen
      7. etc_init.d_jboss
        4 kB
        Henrik Aronsen
      8. jboss_init_redhat_custom.sh
        10 kB
        Rafael Soares (Tuelho)
      9. jboss-restart
        5 kB
        Sami Kerola
      10. jboss-restart-20100727.sh
        5 kB
        Sami Kerola

        Issue Links

          Activity

          Hide
          Martin Malina
          added a comment -

          Once JBAS-7656 is resolved, the documentation jira JBPAPP-3266 also needs to be reopen to include in the docs.

          Show
          Martin Malina
          added a comment - Once JBAS-7656 is resolved, the documentation jira JBPAPP-3266 also needs to be reopen to include in the docs.
          Hide
          Elspeth Thorne
          added a comment -

          Hi Permaine,

          Please see JBPAPP-5003 for the latest on this issue.

          Thanks,

          Elspeth.

          Show
          Elspeth Thorne
          added a comment - Hi Permaine, Please see JBPAPP-5003 for the latest on this issue. Thanks, Elspeth.
          Hide
          Rafael Soares (Tuelho)
          added a comment -

          Hello!

          I think is important to add other properties like:

          • Cluster configs:
            PartitionName: -g parameter used on run.sh
            Multcast Address: -u parameter used on run.sh
          • Logging level: DEBUG/INFO/WARN/ERROR/FATAL
          • Binding Service ports: ports-default/ports-01/ports-02/etc

          Thanks.

          Show
          Rafael Soares (Tuelho)
          added a comment - Hello! I think is important to add other properties like: Cluster configs: PartitionName: -g parameter used on run.sh Multcast Address: -u parameter used on run.sh Logging level: DEBUG/INFO/WARN/ERROR/FATAL Binding Service ports: ports-default/ports-01/ports-02/etc Thanks.
          Hide
          Rafael Soares (Tuelho)
          added a comment - - edited

          Hello.
          I attached a custom version of init_script (jboss_init_redhat_custom.sh) that supports:

          • chkconfig
          • operations: start|stop|restart|kill|status
          • status operations uses twiddle to show some server/webapps/datasources status
          • clustering parameters: jgroups_stack, partition name, udp addr/port
          • jmx credentials can be read from conf/props/jmx-console-users.properties
          • additional variables: log4j level, jboss_user, jboss_home, jnp_port, service_bind_set, profile_name, server_log_dir.

          I've tested in RHEL 5 with EAP 5.1.1.
          I hope it can be useful.

          Thanks.

          Show
          Rafael Soares (Tuelho)
          added a comment - - edited Hello. I attached a custom version of init_script (jboss_init_redhat_custom.sh) that supports: chkconfig operations: start|stop|restart|kill|status status operations uses twiddle to show some server/webapps/datasources status clustering parameters: jgroups_stack, partition name, udp addr/port jmx credentials can be read from conf/props/jmx-console-users.properties additional variables: log4j level, jboss_user, jboss_home, jnp_port, service_bind_set, profile_name, server_log_dir. I've tested in RHEL 5 with EAP 5.1.1. I hope it can be useful. Thanks.
          Hide
          Pankaj Mishra
          added a comment -

          Hi
          I worked over the jboss_init_redhat_custom.sh

          after checking your download which helped me lot.
          I come to a version which required very less modification and worked splendidly.

          Just specify binding server ,jboss server user name, profile of server , shouth down port , modify the running script of jboss_intit_redhat_custom.sh

          JBOSSSH=$

          {JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF -b $JBOSS_BIND_ADDR"}

          and

          shutdown command

          JBOSS_CMD_STOP=$

          {JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown \ -s jnp://$JBOSS_BIND_ADDR:$JBOSS_JNP_PORT \ -u $JBOSS_ADMIN_USER -p $JBOSS_ADMIN_PWD"}

          worked supper

          Now I am able to start and stop the jboss as script.

          Thanx.

          Show
          Pankaj Mishra
          added a comment - Hi I worked over the jboss_init_redhat_custom.sh after checking your download which helped me lot. I come to a version which required very less modification and worked splendidly. Just specify binding server ,jboss server user name, profile of server , shouth down port , modify the running script of jboss_intit_redhat_custom.sh JBOSSSH=$ {JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF -b $JBOSS_BIND_ADDR"} and shutdown command JBOSS_CMD_STOP=$ {JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown \ -s jnp://$JBOSS_BIND_ADDR:$JBOSS_JNP_PORT \ -u $JBOSS_ADMIN_USER -p $JBOSS_ADMIN_PWD"} worked supper Now I am able to start and stop the jboss as script. Thanx.

            People

            • Assignee:
              Permaine Cheung
              Reporter:
              Henrik Aronsen
              Writer:
              Jared Morgan
            • Votes:
              12 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated: