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

jbossas service wrapper fails to get running pid of jboss via run.sh

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • EAP_EWP 5.1.2 ER1
    • EAP 5.0.1
    • Scripts and Commands
    • None
    • RHEL 6.0
      It's a bash script so I'm not sure the java version and such are relavant

    • Hide

      service jbossas start

        • process will crash according to the script
          service jbossas stop
        • fails: you will need to manually kill the process

      run.sh's ath gets set to JBOSSSCRIPT='\/var\/lib\/jbossas\/bin\/run.sh' instead of JBOSSSCRIPT='/var/lib/jbossas/bin/run.sh'

      Show
      service jbossas start process will crash according to the script service jbossas stop fails: you will need to manually kill the process run.sh's ath gets set to JBOSSSCRIPT='\/var\/lib\/jbossas\/bin\/run.sh' instead of JBOSSSCRIPT='/var/lib/jbossas/bin/run.sh'
    • Workaround Exists
    • Hide

      remove/modify the sed command in /etc/init.d/jbossas procrunning function that sets the run.sh script's location

      Show
      remove/modify the sed command in /etc/init.d/jbossas procrunning function that sets the run.sh script's location
    • Low
    • On RHEL 6 the JBoss service script had some backslashes incorrectly escaped, resulting in an invalid command and stopping JBoss being started or stopped. The script has been fixed and JBoss can reliably be started and stopped on RHEL 6.
    • Documented as Resolved Issue

    Description

      I think the the service script for jbossas it trying to replace backslashes with forward slashes when it goes to get the pid of a runnin gprocess via tyhe run.sh script.

      problem is that is adds backslashes into the path of run.sh instead of replacing them.

      — jbossas.rpm_broken 2011-02-09 10:27:34.000000000 -0500
      +++ jbossas 2011-02-09 10:27:42.000000000 -0500
      -202,7 +202,7 @@

      function procrunning() {
      procid=0

      • JBOSSSCRIPT=$(echo $JBOSS_HOME/bin/run.sh|sed 's/\//\\\//g')
        + JBOSSSCRIPT=$(echo $JBOSS_HOME/bin/run.sh|sed 's/\\/\//g')
        for procid in `pidof -x "$JBOSSSCRIPT"`; do
        if [ ! -z $JBOSS_IP ]; then

      Attachments

        Activity

          People

            permaine Permaine Cheung
            danradez Dan Radez
            Russell Dickenson Russell Dickenson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: