glassfish
  1. glassfish
  2. GLASSFISH-17724

create-service: serviceproperties option ignored

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2_dev, 4.0
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None

      Description

      Ref: http://www.java.net/forum/topic/glassfish/glassfish/glassfish-31-service-ms-windows-how-customize-service-display-name

      nice work from a user. It is impossible to change the display-name of a GF Service by using the serviceproperties argument.

        Issue Links

          Activity

          Hide
          Paul Davies added a comment -

          Maybe the existing behavior is a feature and not a bug.

          According to the create-service(1) man page, --serviceproperties is for Oracle Solaris systems only.

          This man page also describes the option for setting the display name, which is --name.

          Show
          Paul Davies added a comment - Maybe the existing behavior is a feature and not a bug. According to the create-service(1) man page, --serviceproperties is for Oracle Solaris systems only. This man page also describes the option for setting the display name, which is --name.
          Hide
          Byron Nevins added a comment -

          D:\glassfish3\glassfish>svn commit -F \temp\commit.txt d:\gf\branches\3.1.2\packager\nucleus-base\lib\install\templates d:\gf\trunk\main\nucleus\packager\nucle
          us-base\lib\install\templates d:\gf\trunk\main\nucleus\admin\server-mgmt d:\gf\branches\3.1.2\admin\server-mgmt
          Sending gf\branches\3.1.2\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\Constants.java
          Sending gf\branches\3.1.2\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\NonSMFServiceAdapter.java
          Sending gf\branches\3.1.2\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\WindowsService.java
          Sending gf\branches\3.1.2\packager\nucleus-base\lib\install\templates\Domain-service-winsw.xml.template
          Sending gf\trunk\main\nucleus\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\Constants.java
          Sending gf\trunk\main\nucleus\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\NonSMFServiceAdapter.java
          Sending gf\trunk\main\nucleus\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\WindowsService.java
          Sending gf\trunk\main\nucleus\packager\nucleus-base\lib\install\templates\Domain-service-winsw.xml.template
          Transmitting file data ........
          Committed revision 50837.

          ===============================
          Commit Message:

          http://java.net/jira/browse/GLASSFISH-17725

          Added a new service property for Windows:
          E.g.

          D:\glassfish3\glassfish>asadmin create-service --name "DAS_id" --serviceproperties DISPLAY_NAME="My Favorite App Server"
          The Windows Service was created successfully. It is ready to be started. Here are the details:
          ID of the service: DAS_id
          Display Name of the service:My Favorite App Server

          D:\glassfish3\glassfish>sc query state= all | tail -10
          WAIT_HINT : 0x0

          SERVICE_NAME: DAS_id
          DISPLAY_NAME: My Favorite App Server
          TYPE : 10 WIN32_OWN_PROCESS
          STATE : 1 STOPPED
          WIN32_EXIT_CODE : 1077 (0x435)
          SERVICE_EXIT_CODE : 0 (0x0)
          CHECKPOINT : 0x0
          WAIT_HINT : 0x0

          ============================================

          Show
          Byron Nevins added a comment - D:\glassfish3\glassfish>svn commit -F \temp\commit.txt d:\gf\branches\3.1.2\packager\nucleus-base\lib\install\templates d:\gf\trunk\main\nucleus\packager\nucle us-base\lib\install\templates d:\gf\trunk\main\nucleus\admin\server-mgmt d:\gf\branches\3.1.2\admin\server-mgmt Sending gf\branches\3.1.2\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\Constants.java Sending gf\branches\3.1.2\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\NonSMFServiceAdapter.java Sending gf\branches\3.1.2\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\WindowsService.java Sending gf\branches\3.1.2\packager\nucleus-base\lib\install\templates\Domain-service-winsw.xml.template Sending gf\trunk\main\nucleus\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\Constants.java Sending gf\trunk\main\nucleus\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\NonSMFServiceAdapter.java Sending gf\trunk\main\nucleus\admin\server-mgmt\src\main\java\com\sun\enterprise\admin\servermgmt\services\WindowsService.java Sending gf\trunk\main\nucleus\packager\nucleus-base\lib\install\templates\Domain-service-winsw.xml.template Transmitting file data ........ Committed revision 50837. =============================== Commit Message: http://java.net/jira/browse/GLASSFISH-17725 Added a new service property for Windows: E.g. D:\glassfish3\glassfish>asadmin create-service --name "DAS_id" --serviceproperties DISPLAY_NAME="My Favorite App Server" The Windows Service was created successfully. It is ready to be started. Here are the details: ID of the service: DAS_id Display Name of the service:My Favorite App Server D:\glassfish3\glassfish>sc query state= all | tail -10 WAIT_HINT : 0x0 SERVICE_NAME: DAS_id DISPLAY_NAME: My Favorite App Server TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED WIN32_EXIT_CODE : 1077 (0x435) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 ============================================
          Hide
          Byron Nevins added a comment -

          It was mistakenly set to P2 when created.

          Show
          Byron Nevins added a comment - It was mistakenly set to P2 when created.

            People

            • Assignee:
              Byron Nevins
              Reporter:
              Byron Nevins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: