1. glassfish
  2. GLASSFISH-16311

Improve operating service (OS) integration


    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: future release
    • Component/s: admin
    • Labels:
    • Environment:

      Windows, Linux, Solaris


      This RFE is for improving the operating system (OS) service integration for GlassFish. Here are the requirements:

      1. Expose the asadmin delete-service interface as a public interface (rather than being hidden as it is currently).

      2. Modify the service implementation so that it acts as a monitor on all operating systems. By monitor, this means that if the service is started, then if the GlassFish process exits, it should be restarted automatically. The Windows service currently doesn't work this way - I'm not sure for Linux and Solaris.

      3. Modify the service implementation and/or the various start/stop commands so that they interact correctly. This includes:

      3a. If the OS service is started, and the user runs stop-local-instance or stop-domain, then the OS service should be stopped too.

      3b. If the server is started using start-domain or start-local-instance, and the OS service is not started, the OS service should not be started. However, if the user then later starts the OS service, the OS service must recognize that the server is already running and monitor the already running server (See req. #2).

      4. Any sequence of OS service commands and asadmin start/stop-domain or start/stop-local-instance commands must not cause a failure of the command. For example, currently, if you start the Windows OS service for a domain, and then run stop-domain, and then try to stop the Windows OS service, you get an error message from Windows. Also on Windows, if you run start-domain, and then start the OS service, you get an error message saying that "The process terminated unexpectedly." and the service isn't started.

      5. The service should be able to be deleted using either the operating system command for deleting services or the asadmin delete-service command. So the following sequences should work:

      asadmin create-service
      OS delete service command
      asadmin create-service
      asadmin delete-service

      Currently, the 2nd create-service in this sequence may require a --force option. Ideally, it shouldn't.

      6. These requirements apply to the officially supported operating systems for GlassFish for Windows, Linux, and Solaris.

        Issue Links


          Tom Mueller created issue -
          Tom Mueller made changes -
          Field Original Value New Value
          Link This issue depends on GLASSFISH-11692 [ GLASSFISH-11692 ]
          Tom Mueller made changes -
          Link This issue depends on GLASSFISH-16140 [ GLASSFISH-16140 ]
          Tom Mueller made changes -
          Link This issue depends on GLASSFISH-12363 [ GLASSFISH-12363 ]
          Tom Mueller made changes -
          Link This issue depends on GLASSFISH-10266 [ GLASSFISH-10266 ]
          Tom Mueller made changes -
          Link This issue depends on GLASSFISH-5263 [ GLASSFISH-5263 ]
          Byron Nevins made changes -
          Fix Version/s 3.2_ms05 [ 14747 ]
          Fix Version/s 3.2 [ 10969 ]
          Byron Nevins made changes -
          Tags services
          Byron Nevins made changes -
          Link This issue depends on GLASSFISH-16522 [ GLASSFISH-16522 ]
          Byron Nevins made changes -
          Link This issue depends on GLASSFISH-16523 [ GLASSFISH-16523 ]
          Byron Nevins made changes -
          Link This issue depends on GLASSFISH-16525 [ GLASSFISH-16525 ]
          Byron Nevins made changes -
          Link This issue depends on GLASSFISH-16526 [ GLASSFISH-16526 ]
          Nazrul made changes -
          Link This issue is duplicated by GLASSFISH-17126 [ GLASSFISH-17126 ]
          Joe Di Pol made changes -
          Fix Version/s 4.0_b55_ms5 [ 15644 ]
          Fix Version/s 4.0_ms05 [ 14747 ]
          Tom Mueller made changes -
          Tags services ee7ri_cleanup_deferred
          Fix Version/s future release [ 11148 ]
          Fix Version/s 4.0_b55 [ 15644 ]


            • Assignee:
              Byron Nevins
              Tom Mueller
            • Votes:
              2 Vote for this issue
              5 Start watching this issue


              • Created: