3 Replies Latest reply on May 28, 2008 11:56 AM by Bruce Snyder

    Shutdown script

    Michael Worsham Newbie

      As per the http://activemq.apache.org/unix-service.html page (which seems to reference AMQ 4.x release), it talks of a 'shutdown' script located under its 'bin' directory, however when I looked, all I find is this:

       

      activemq

      activemq-admin

      linux

      macosx

      run.jar

      wrapper.jar

       

      I looked under the subdirectories as well, but no luck there either.

       

      Anyone have the shutdown script modified for AMQ 5.x?

        • 1. Re: Shutdown script
          Bruce Snyder Novice

           

          As per the http://activemq.apache.org/unix-service.html page (which seems to reference AMQ 4.x release), it talks of a 'shutdown' script located under its 'bin' directory, however when I looked, all I find is this:

           

          activemq

          activemq-admin

          linux

          macosx

          run.jar

          wrapper.jar

           

           

          There used to be a shutdown script in ActiveMQ 4.x but that has been replaced by the Java Service Wrapper, hence the platform dirs.

           

           

          I looked under the subdirectories as well, but no luck there either.

           

          Anyone have the shutdown script modified for AMQ 5.x?

           

           

          The wrapper executable in each platform dir is a binary executable and a start script for that platform. So you can execute the script on the respective platform (not sure why there's not one for Windoze). For example, to see the available options on the MacOS X wrapper script, execute the following from within the ActiveMQ dir and you'll see the following output:

           

          $ ./bin/macosx/activemq
          Usage: ./bin/macosx/activemq { console | start | stop | restart | status | dump }
          

           

          To start up ActiveMQ, execute the following:

           

          $ ./bin/macosx/activemq start 
          

           

          To shutdown ActiveMQ, execute the following:

           

          $ ./bin/macosx/activemq stop 
          

           

          Bruce

           

          Edited by: bsnyder on May 27, 2008 9:07 PM

          • 2. Re: Shutdown script
            Michael Worsham Newbie

            Actually under the linux directory, there are these files:

             

            libwrapper.so

            wrapper

            wrapper.conf

            • 3. Re: Shutdown script
              Bruce Snyder Novice

              Yeah, I see now that the script in the linux dir is missing in apache-activemq-5.0.0.14-fuse. It was there in apache-activemq-5.0.0.13-fuse, The exclusion of this script and the lack of a Wrapper script for Windows both appear to be a bug so I filed MB-358 to get this fixed in the next release.

               

              Bruce

               

              Edited by: bsnyder on May 28, 2008 9:56 AM