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

jboss_init_redhat script can't stop running server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.3.0.ER3
    • None
    • None
    • Hide

      remove | sed 's/\//\\\//g' from jboss_init_redhat.sh

      Show
      remove | sed 's/\//\\\//g' from jboss_init_redhat.sh
    • NEW

    Description

      According to https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/4.3/html/Installation_Guide/run_application_server_as_a_service.html

      I was trying to test jboss_init_redhat.sh script to start and stop JBoss EAP as service with my local EAP 5.3 build. I found that once I started server and execute stop command, the server can not be stopped due to "No JBossas is currently running".

      From the jboss_init_redhat.sh script code:

      function procrunning() {
         procid=0
         JBOSSSCRIPT=$(echo $JBOSSSH | awk '{print $1}' | sed 's/\//\\\//g')
         for procid in `/sbin/pidof -x "$JBOSSSCRIPT"`; do
             ps -fp $procid | grep "${JBOSSSH% *}" > /dev/null && pid=$procid
         done
      }
      

      the sed regexp substitution changes the right path from
      /home/wangchao/work/jbossas/EAP5/JBPAPP_5/build/output/jboss-5.3.0.Branch/bin/run.sh
      to
      \/home\/wangchao\/work\/jbossas\/EAP5\/JBPAPP_5\/build\/output\/jboss-5.3.0.Branch\/bin\/run.sh

      therefore, it can't get to right procid to proceed to stop server.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: