3 Replies Latest reply on Jan 3, 2011 2:01 PM by nickarls

    Start specific nodes as Windows services

    nickarls

      What is the recommended way of starting multiple nodes as windows services?

       

      Should I just copy service.bat as production_service.bat and test_service.bat and edit the files accordingly?

        • 1. Re: Start specific nodes as Windows services
          jaikiran

          Few years back, when I wanted something similar, I created a copy of the service.bat file, like you say and edited it to run the correct instance of the server. I think i even had to edit a portion of the file to make sure it registers the correct service name, uses the correct lock file and some other minor details.

          1 of 1 people found this helpful
          • 2. Re: Start specific nodes as Windows services
            peterj

            Check out the source code for JBoss in Action (http://www.manning.com/jamae), in ch15/src/service/windows there is a service.bat that easily handles multiple services - the Ant build script fills in all of the ${para.*} properties buy you can just as easily supply those by hand. And the best thing is that all the things to change are at the start of the file, and it follows the DRY principle (every data item is entered only once).

            • 3. Re: Start specific nodes as Windows services
              nickarls

              Thanks, looks promising! Perhaps something like it will make it into a future AS relase