3 Replies Latest reply on Feb 18, 2016 2:51 AM by stejas7

    Windows Services not working properly

    stejas7

      Hello,

       

      Just for information, I am trying to create a infinispan Windows service using below steps.

       

      1) I moved infinispan-server-8.1.0.Final\docs\contrib\scripts\service folder to Infinispan\infinispan-server-8.1.0.Final\bin\service bin folder

       

      2) Than command line through use that folder service.bat file and create a infinispan services using below command

        service install /controller localhost:9990 /host master

       

      3) Now i am started installed infinispan service from windows services.Its successfully started, but when i stopping the service and restart infinispan service.Its doesn't stopped.

       

      For that I follow below link,

      Getting started with WildFly 8 | WildFly 8 Administration

       

      Thanks

        • 1. Re: Windows Services not working properly
          nadirx

          Tejas,

           

          we could help you better if you could post some logs.

          • 2. Re: Windows Services not working properly
            stejas7

            nadirx

             

            [2016-02-15 13:47:37] [info]  [15324] Commons Daemon procrun (1.0.15.0 64-bit) started

            [2016-02-15 13:47:37] [info]  [15324] Service Wildfly name Wildfly

            [2016-02-15 13:47:37] [info]  [15324] Service 'Wildfly' installed

            [2016-02-15 13:47:37] [info]  [15324] Commons Daemon procrun finished

            [2016-02-15 13:48:01] [info]  [13436] Commons Daemon procrun (1.0.15.0 64-bit) started

            [2016-02-15 13:48:01] [info]  [13436] Running 'Wildfly' Service...

            [2016-02-15 13:48:01] [info]  [  516] Starting service...

            [2016-02-15 13:48:01] [info]  [  516] Service started in 2 ms.

            [2016-02-15 13:49:13] [info]  [12744] Stopping service...

            [2016-02-15 13:54:32] [info]  [10764] Commons Daemon procrun (1.0.15.0 64-bit) started

            [2016-02-15 13:54:32] [info]  [10764] Service Wildfly name Wildfly

            [2016-02-15 13:54:32] [info]  [10764] Service 'Wildfly' installed

            [2016-02-15 13:54:32] [info]  [10764] Commons Daemon procrun finished

            [2016-02-15 13:54:41] [info]  [12376] Commons Daemon procrun (1.0.15.0 64-bit) started

            [2016-02-15 13:54:41] [info]  [12376] Running 'Wildfly' Service...

            [2016-02-15 13:54:41] [info]  [15132] Starting service...

            [2016-02-15 13:54:41] [info]  [15132] Service started in 1 ms.

            [2016-02-15 13:54:44] [info]  [12376] Run service finished.

            [2016-02-15 13:54:44] [info]  [12376] Commons Daemon procrun finished

            [2016-02-15 14:34:55] [info]  [12564] Commons Daemon procrun (1.0.15.0 64-bit) started

            [2016-02-15 14:34:55] [info]  [12564] Running 'Wildfly' Service...

            [2016-02-15 14:34:55] [info]  [13432] Starting service...

            [2016-02-15 14:34:55] [info]  [13432] Service started in 1 ms.

            [2016-02-15 14:34:58] [info]  [12564] Run service finished.

            [2016-02-15 14:34:58] [info]  [12564] Commons Daemon procrun finished

            [2016-02-15 14:35:27] [info]  [12392] Commons Daemon procrun (1.0.15.0 64-bit) started

            [2016-02-15 14:35:27] [info]  [12392] Running 'Wildfly' Service...

            [2016-02-15 14:35:27] [info]  [10952] Starting service...

            [2016-02-15 14:35:27] [info]  [10952] Service started in 1 ms.

            [2016-02-15 14:35:30] [info]  [14516] Stopping service...

            [2016-02-15 14:35:30] [info]  [14516] Service stop thread completed.

            [2016-02-15 14:35:30] [info]  [12392] Run service finished.

            [2016-02-15 14:35:30] [info]  [12392] Commons Daemon procrun finished


            I stopped a Infinispan windows service but still web management console is working .I also check with clear browser cache.

            • 3. Re: Windows Services not working properly
              stejas7

              I have found two more solution which converts a bat file into Windows service .

              1) There is a tool named Always Up but its a licensed version.

              2) There is a tool named NSSM its a open source.